Remove magic numbers

This commit is contained in:
Joe Manley 2025-02-07 23:09:06 -08:00
parent adedc1c2c6
commit 88fb6ec15a

View file

@ -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) {