From afc68ca91f619d3e445d86cd58f55bf54efce171 Mon Sep 17 00:00:00 2001 From: ItzCrazyKns <95534749+ItzCrazyKns@users.noreply.github.com> Date: Thu, 20 Nov 2025 14:52:24 +0530 Subject: [PATCH] feat(ollamaLLM): disable thinking in obj mode --- src/lib/models/providers/ollama/ollamaLLM.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/lib/models/providers/ollama/ollamaLLM.ts b/src/lib/models/providers/ollama/ollamaLLM.ts index fd12b77..0e64d7b 100644 --- a/src/lib/models/providers/ollama/ollamaLLM.ts +++ b/src/lib/models/providers/ollama/ollamaLLM.ts @@ -96,9 +96,10 @@ class OllamaLLM extends BaseLLM { model: this.config.model, messages: input.messages, format: z.toJSONSchema(input.schema), + think: false, options: { top_p: this.config.options?.topP, - temperature: this.config.options?.temperature, + temperature: 0, num_predict: this.config.options?.maxTokens, frequency_penalty: this.config.options?.frequencyPenalty, presence_penalty: this.config.options?.presencePenalty, @@ -123,6 +124,7 @@ class OllamaLLM extends BaseLLM { messages: input.messages, format: z.toJSONSchema(input.schema), stream: true, + think: false, options: { top_p: this.config.options?.topP, temperature: this.config.options?.temperature,