From ce858aa34e221a8d41dbb504d21d6aa655bdc926 Mon Sep 17 00:00:00 2001 From: Joe Manley Date: Fri, 7 Feb 2025 21:22:18 -0800 Subject: [PATCH] Update src/api/providers/ollama.ts Suggestion from Matt Co-authored-by: Matt Rubens --- src/api/providers/ollama.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/api/providers/ollama.ts b/src/api/providers/ollama.ts index 44e0d3f4af..b6b11ccc07 100644 --- a/src/api/providers/ollama.ts +++ b/src/api/providers/ollama.ts @@ -59,7 +59,7 @@ export class OllamaHandler implements ApiHandler, SingleCompletionHandler { messages: useR1Format ? convertToR1Format([{ role: "user", content: prompt }]) : [{ role: "user", content: prompt }], - temperature: this.options.modelTemperature ?? 0, + temperature: this.options.modelTemperature ?? (useR1Format ? 0.6 : 0), stream: false, }) return response.choices[0]?.message.content || ""