Skip to content

Commit c44e64a

Browse files
committed
fix(OpenAiNativeHandler): correct defaultTemperature logic
Reverses the conditional assignment to defaultTemperature so it sets the default when supportsTemperature is true, and undefined otherwise. Prevents models without temperature support from receiving an unintended default value.
1 parent 0703e40 commit c44e64a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/api/providers/openai-native.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1154,7 +1154,7 @@ export class OpenAiNativeHandler extends BaseProvider implements SingleCompletio
11541154
modelId: id,
11551155
model: info,
11561156
settings: this.options,
1157-
defaultTemperature: info.supportsTemperature ? undefined : OPENAI_NATIVE_DEFAULT_TEMPERATURE,
1157+
defaultTemperature: info.supportsTemperature ? OPENAI_NATIVE_DEFAULT_TEMPERATURE : undefined,
11581158
})
11591159

11601160
// For models using the Responses API, ensure we support reasoning effort

0 commit comments

Comments
 (0)