Skip to content

Commit 38ac502

Browse files
committed
Add support for GPT5
1 parent 0511808 commit 38ac502

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/client/platforms/openai.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -231,7 +231,7 @@ export class ChatGPTApi implements LLMApi {
231231
messages,
232232
stream: options.config.stream,
233233
model: modelConfig.model,
234-
temperature: !isO1OrO3 ? modelConfig.temperature : 1,
234+
temperature: (!isO1OrO3 && !isGpt5) ? modelConfig.temperature : 1,
235235
presence_penalty: !isO1OrO3 ? modelConfig.presence_penalty : 0,
236236
frequency_penalty: !isO1OrO3 ? modelConfig.frequency_penalty : 0,
237237
top_p: !isO1OrO3 ? modelConfig.top_p : 1,

0 commit comments

Comments
 (0)