fix: remove hardcoded temperature from GPT-5 handler

- Updated handleGPT5Message to use configurable temperature
- Now uses this.options.modelTemperature ?? OPENAI_NATIVE_DEFAULT_TEMPERATURE
- Maintains consistency with other model handlers
This commit is contained in:
Roo Code 2025-08-07 17:22:31 +00:00
parent 0e7abee715
commit b99eb415ff

View file

@ -132,7 +132,7 @@ export class OpenAiNativeHandler extends BaseProvider implements SingleCompletio
): ApiStream {
const stream = await this.client.chat.completions.create({
model: model.id,
temperature: 1,
temperature: this.options.modelTemperature ?? OPENAI_NATIVE_DEFAULT_TEMPERATURE,
messages: [{ role: "developer", content: systemPrompt }, ...convertToOpenAiMessages(messages)],
stream: true,
stream_options: { include_usage: true },