From 88fb6ec15a1d3de438affc7ad27f6316b74db8fd Mon Sep 17 00:00:00 2001 From: Joe Manley Date: Fri, 7 Feb 2025 23:09:06 -0800 Subject: [PATCH] Remove magic numbers --- 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 b8c2dfaeee..1a204b5d6c 100644 --- a/src/api/providers/ollama.ts +++ b/src/api/providers/ollama.ts @@ -32,7 +32,7 @@ export class OllamaHandler implements ApiHandler, SingleCompletionHandler { const stream = await this.client.chat.completions.create({ model: this.getModel().id, messages: openAiMessages, - temperature: this.options.modelTemperature ?? DEFAULT_TEMPERATURE, + temperature: this.options.modelTemperature ?? OLLAMA_DEFAULT_TEMPERATURE, stream: true, }) for await (const chunk of stream) {