feat(openai): conditionally set temperature
This commit is contained in:
parent
1132997108
commit
3edd7d44dd
1 changed files with 1 additions and 1 deletions
|
|
@ -81,7 +81,7 @@ export const loadOpenAIChatModels = async () => {
|
||||||
model: new ChatOpenAI({
|
model: new ChatOpenAI({
|
||||||
apiKey: openaiApiKey,
|
apiKey: openaiApiKey,
|
||||||
modelName: model.key,
|
modelName: model.key,
|
||||||
temperature: 1,
|
temperature: model.key.includes('gpt-5') ? 1 : 0.7,
|
||||||
}) as unknown as BaseChatModel,
|
}) as unknown as BaseChatModel,
|
||||||
};
|
};
|
||||||
});
|
});
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue