Skip to content

Commit ce858aa

Browse files
Update src/api/providers/ollama.ts
Suggestion from Matt Co-authored-by: Matt Rubens <[email protected]>
1 parent bc9773f commit ce858aa

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/api/providers/ollama.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ export class OllamaHandler implements ApiHandler, SingleCompletionHandler {
5959
messages: useR1Format
6060
? convertToR1Format([{ role: "user", content: prompt }])
6161
: [{ role: "user", content: prompt }],
62-
temperature: this.options.modelTemperature ?? 0,
62+
temperature: this.options.modelTemperature ?? (useR1Format ? 0.6 : 0),
6363
stream: false,
6464
})
6565
return response.choices[0]?.message.content || ""

0 commit comments

Comments
 (0)