aboutsummaryrefslogtreecommitdiffstats
path: root/types.go
diff options
context:
space:
mode:
authorterminaldweller <devi@terminaldweller.com>2025-09-07 01:37:20 +0000
committerterminaldweller <devi@terminaldweller.com>2025-09-07 01:37:20 +0000
commitf09325dbbba591baafb5e48f60c2b5c7db8ef7cc (patch)
tree447540e644999b83d3f9d632a10976ca9e85bdfa /types.go
parentsome more ghost things which are WIP. added the think parameter for ollama. f... (diff)
downloadmilla-f09325dbbba591baafb5e48f60c2b5c7db8ef7cc.tar.gz
milla-f09325dbbba591baafb5e48f60c2b5c7db8ef7cc.zip
fixed the type of OllamaThink. change to string from bool.HEADmain
Diffstat (limited to 'types.go')
-rw-r--r--types.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/types.go b/types.go
index a2603c4..9f127ad 100644
--- a/types.go
+++ b/types.go
@@ -122,7 +122,7 @@ type TomlConfig struct {
OllamaSeed int `toml:"ollamaSeed"`
OllamaNumPredict int `toml:"ollamaNumPredict"`
OllamaMinP float64 `toml:"ollamaMinP"`
- OllamaThink bool `toml:"ollamaThink"`
+ OllamaThink string `toml:"ollamaThink"`
TopP float32 `toml:"topP"`
TopK int32 `toml:"topK"`
IrcBackOffInitialInterval int `toml:"ircBackOffInitialInterval"`
@@ -239,7 +239,7 @@ type OllamaChatMessagesResponse struct {
type OllamaChatRequest struct {
Model string `json:"model"`
Stream bool `json:"stream"`
- Think bool `json:"think"`
+ Think string `json:"think"`
KeepAlive time.Duration `json:"keep_alive"`
Options OllamaRequestOptions `json:"options"`
System string `json:"system"`