mirror of
https://github.com/ollama/ollama.git
synced 2026-07-10 09:44:18 +00:00
Add Cache flag to api (#1642)
This commit is contained in:
parent
db356c8519
commit
10da41d677
3 changed files with 6 additions and 2 deletions
|
|
@ -103,6 +103,7 @@ type Options struct {
|
|||
MirostatEta float32 `json:"mirostat_eta,omitempty"`
|
||||
PenalizeNewline bool `json:"penalize_newline,omitempty"`
|
||||
Stop []string `json:"stop,omitempty"`
|
||||
Cache bool `json:"cache,omitempty"`
|
||||
}
|
||||
|
||||
// Runner options which must be set when the model is loaded into memory
|
||||
|
|
@ -355,6 +356,7 @@ func DefaultOptions() Options {
|
|||
MirostatEta: 0.1,
|
||||
PenalizeNewline: true,
|
||||
Seed: -1,
|
||||
Cache: true,
|
||||
|
||||
Runner: Runner{
|
||||
// options set when the model is loaded
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue