feat: Add support for latest AI models from Anthropic, Google, & OpenAI
This commit is contained in:
parent
37cd6d3ab5
commit
1132997108
3 changed files with 29 additions and 1 deletions
|
|
@ -42,6 +42,18 @@ const openaiChatModels: Record<string, string>[] = [
|
|||
displayName: 'GPT 4.1',
|
||||
key: 'gpt-4.1',
|
||||
},
|
||||
{
|
||||
displayName: 'GPT 5 nano',
|
||||
key: 'gpt-5-nano',
|
||||
},
|
||||
{
|
||||
displayName: 'GPT 5 mini',
|
||||
key: 'gpt-5-mini',
|
||||
},
|
||||
{
|
||||
displayName: 'GPT 5',
|
||||
key: 'gpt-5',
|
||||
},
|
||||
];
|
||||
|
||||
const openaiEmbeddingModels: Record<string, string>[] = [
|
||||
|
|
@ -69,7 +81,7 @@ export const loadOpenAIChatModels = async () => {
|
|||
model: new ChatOpenAI({
|
||||
apiKey: openaiApiKey,
|
||||
modelName: model.key,
|
||||
temperature: 0.7,
|
||||
temperature: 1,
|
||||
}) as unknown as BaseChatModel,
|
||||
};
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue