File tree Expand file tree Collapse file tree 2 files changed +6
-1
lines changed
Expand file tree Collapse file tree 2 files changed +6
-1
lines changed Original file line number Diff line number Diff line change 1+ ---
2+ " claude-dev " : patch
3+ ---
4+
5+ Add the o1 to the isReasoningModelFamily to avoid temperature be passed to the azure api
Original file line number Diff line number Diff line change @@ -41,7 +41,7 @@ export class OpenAiHandler implements ApiHandler {
4141 const modelId = this . options . openAiModelId ?? ""
4242 const isDeepseekReasoner = modelId . includes ( "deepseek-reasoner" )
4343 const isR1FormatRequired = this . options . openAiModelInfo ?. isR1FormatRequired ?? false
44- const isReasoningModelFamily = modelId . includes ( "o3" ) || modelId . includes ( "o4" )
44+ const isReasoningModelFamily = modelId . includes ( "o1" ) || modelId . includes ( " o3") || modelId . includes ( "o4" )
4545
4646 let openAiMessages : OpenAI . Chat . ChatCompletionMessageParam [ ] = [
4747 { role : "system" , content : systemPrompt } ,
You can’t perform that action at this time.
0 commit comments