mirror of
https://github.com/mudler/LocalAI.git
synced 2024-12-18 20:27:57 +00:00
examples(mistral-openorca): add stopword
Signed-off-by: Ettore Di Giacinto <mudler@localai.io>
This commit is contained in:
parent
ba85d0bcad
commit
feba38be36
@ -11,20 +11,18 @@ template:
|
|||||||
<|im_start|>{{if eq .RoleName "assistant"}}assistant{{else if eq .RoleName "system"}}system{{else if eq .RoleName "user"}}user{{end}}
|
<|im_start|>{{if eq .RoleName "assistant"}}assistant{{else if eq .RoleName "system"}}system{{else if eq .RoleName "user"}}user{{end}}
|
||||||
{{if .Content}}{{.Content}}{{end}}
|
{{if .Content}}{{.Content}}{{end}}
|
||||||
<|im_end|>
|
<|im_end|>
|
||||||
|
|
||||||
chat: |
|
chat: |
|
||||||
{{.Input}}
|
{{.Input}}
|
||||||
<|im_start|>assistant
|
<|im_start|>assistant
|
||||||
|
|
||||||
completion: |
|
completion: |
|
||||||
{{.Input}}
|
{{.Input}}
|
||||||
context_size: 4096
|
context_size: 4096
|
||||||
f16: true
|
f16: true
|
||||||
stopwords:
|
stopwords:
|
||||||
- <|im_end|>
|
- <|im_end|>
|
||||||
|
- <dummy32000>
|
||||||
usage: |
|
usage: |
|
||||||
curl http://localhost:8080/v1/chat/completions -H "Content-Type: application/json" -d '{
|
curl http://localhost:8080/v1/chat/completions -H "Content-Type: application/json" -d '{
|
||||||
"model": "mistral-openorca",
|
"model": "mistral-openorca",
|
||||||
"messages": [{"role": "user", "content": "How are you doing?", "temperature": 0.1}]
|
"messages": [{"role": "user", "content": "How are you doing?", "temperature": 0.1}]
|
||||||
}'
|
}'
|
||||||
|
Loading…
Reference in New Issue
Block a user