mirror of
https://github.com/pacnpal/Roo-Code.git
synced 2025-12-20 12:21:13 -05:00
Merge remote-tracking branch 'origin/main' into v3.3.5
This commit is contained in:
@@ -114,13 +114,11 @@ export class OpenRouterHandler implements ApiHandler, SingleCompletionHandler {
|
||||
}
|
||||
|
||||
let temperature = 0
|
||||
switch (this.getModel().id) {
|
||||
case "deepseek/deepseek-r1":
|
||||
// Recommended temperature for DeepSeek reasoning models
|
||||
temperature = 0.6
|
||||
// DeepSeek highly recommends using user instead of system role
|
||||
openAiMessages[0].role = "user"
|
||||
openAiMessages = convertToR1Format([{ role: "user", content: systemPrompt }, ...messages])
|
||||
if (this.getModel().id === "deepseek/deepseek-r1" || this.getModel().id.startsWith("deepseek/deepseek-r1:")) {
|
||||
// Recommended temperature for DeepSeek reasoning models
|
||||
temperature = 0.6
|
||||
// DeepSeek highly recommends using user instead of system role
|
||||
openAiMessages = convertToR1Format([{ role: "user", content: systemPrompt }, ...messages])
|
||||
}
|
||||
|
||||
// https://openrouter.ai/docs/transforms
|
||||
|
||||
Reference in New Issue
Block a user