From f09325dbbba591baafb5e48f60c2b5c7db8ef7cc Mon Sep 17 00:00:00 2001 From: terminaldweller Date: Sat, 6 Sep 2025 21:37:20 -0400 Subject: fixed the type of OllamaThink. change to string from bool. --- types.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'types.go') 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"` -- cgit v1.2.3