Update src/api/providers/ollama.ts

Suggestion from Matt

Co-authored-by: Matt Rubens <mrubens@users.noreply.github.com>
This commit is contained in:
Joe Manley 2025-02-07 21:22:18 -08:00 committed by GitHub
parent bc9773ff9a
commit ce858aa34e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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 || ""