mirror of
https://github.com/RooVetGit/Roo-Code.git
synced 2026-10-07 02:58:15 +00:00
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:
parent
0e7abee715
commit
b99eb415ff
1 changed files with 1 additions and 1 deletions
|
|
@ -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 },
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue