Merge pull request #599 from data5650/patch-1

feat: add Gemini 2.0 Flash Exp models
This commit is contained in:
ItzCrazyKns 2025-02-07 11:29:29 +05:30 committed by GitHub
commit 7ec201d011
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -36,6 +36,22 @@ export const loadGeminiChatModels = async () => {
apiKey: geminiApiKey, apiKey: geminiApiKey,
}), }),
}, },
'gemini-2.0-flash-exp': {
displayName: 'Gemini 2.0 Flash Exp',
model: new ChatGoogleGenerativeAI({
modelName: 'gemini-2.0-flash-exp',
temperature: 0.7,
apiKey: geminiApiKey,
}),
},
'gemini-2.0-flash-thinking-exp-01-21': {
displayName: 'Gemini 2.0 Flash Thinking Exp 01-21',
model: new ChatGoogleGenerativeAI({
modelName: 'gemini-2.0-flash-thinking-exp-01-21',
temperature: 0.7,
apiKey: geminiApiKey,
}),
},
}; };
return chatModels; return chatModels;