mirror of
https://github.com/mudler/LocalAI.git
synced 2025-05-22 03:24:59 +00:00
Use template input
This commit is contained in:
parent
9fb581739b
commit
ba70363330
1 changed files with 1 additions and 1 deletions
2
api.go
2
api.go
|
@ -114,7 +114,7 @@ func api(defaultModel *llama.LLama, loader *ModelLoader, listenAddr string, thre
|
||||||
|
|
||||||
// Generate the prediction using the language model
|
// Generate the prediction using the language model
|
||||||
prediction, err := model.Predict(
|
prediction, err := model.Predict(
|
||||||
templatedInput,
|
predInput,
|
||||||
llama.SetTemperature(temperature),
|
llama.SetTemperature(temperature),
|
||||||
llama.SetTopP(topP),
|
llama.SetTopP(topP),
|
||||||
llama.SetTopK(topK),
|
llama.SetTopK(topK),
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue