mirror of
https://github.com/ItzCrazyKns/Perplexica.git
synced 2025-09-13 13:01:33 +00:00
feat(openai): conditionally set temperature
This commit is contained in:
@@ -81,7 +81,7 @@ export const loadOpenAIChatModels = async () => {
|
||||
model: new ChatOpenAI({
|
||||
apiKey: openaiApiKey,
|
||||
modelName: model.key,
|
||||
temperature: 1,
|
||||
temperature: model.key.includes('gpt-5') ? 1 : 0.7,
|
||||
}) as unknown as BaseChatModel,
|
||||
};
|
||||
});
|
||||
|
Reference in New Issue
Block a user