mirror of
https://github.com/RooVetGit/Roo-Code.git
synced 2026-08-28 05:27:24 +00:00
Update src/api/providers/ollama.ts
Suggestion from Matt Co-authored-by: Matt Rubens <mrubens@users.noreply.github.com>
This commit is contained in:
parent
bc9773ff9a
commit
ce858aa34e
1 changed files with 1 additions and 1 deletions
|
|
@ -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 || ""
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue