mirror of
https://github.com/mudler/LocalAI.git
synced 2024-12-29 17:08:52 +00:00
26 lines
469 B
Plaintext
26 lines
469 B
Plaintext
|
meta {
|
||
|
name: chat-completions -stream-
|
||
|
type: http
|
||
|
seq: 6
|
||
|
}
|
||
|
|
||
|
post {
|
||
|
url: {{PROTOCOL}}{{HOST}}:{{PORT}}/chat/completions
|
||
|
body: json
|
||
|
auth: none
|
||
|
}
|
||
|
|
||
|
headers {
|
||
|
Content-Type: application/json
|
||
|
}
|
||
|
|
||
|
body:json {
|
||
|
{
|
||
|
"model": "{{DEFAULT_MODEL}}",
|
||
|
"messages": [{"role": "user", "content": "Explain how I can set sail on the ocean using only power generated by seagulls?"}],
|
||
|
"max_tokens": 256,
|
||
|
"temperature": 0.9,
|
||
|
"stream": true
|
||
|
}
|
||
|
}
|