mirror of
https://github.com/mudler/LocalAI.git
synced 2024-12-29 00:48:51 +00:00
25 lines
371 B
Plaintext
25 lines
371 B
Plaintext
|
meta {
|
||
|
name: -completions
|
||
|
type: http
|
||
|
seq: 4
|
||
|
}
|
||
|
|
||
|
post {
|
||
|
url: {{PROTOCOL}}{{HOST}}:{{PORT}}/completions
|
||
|
body: json
|
||
|
auth: none
|
||
|
}
|
||
|
|
||
|
headers {
|
||
|
Content-Type: application/json
|
||
|
}
|
||
|
|
||
|
body:json {
|
||
|
{
|
||
|
"model": "{{DEFAULT_MODEL}}",
|
||
|
"prompt": "function downloadFile(string url, string outputPath) {",
|
||
|
"max_tokens": 256,
|
||
|
"temperature": 0.5
|
||
|
}
|
||
|
}
|