Skip to content

Commit

Permalink
Merge pull request #599 from data5650/patch-1
Browse files Browse the repository at this point in the history
feat: add Gemini 2.0 Flash Exp models
  • Loading branch information
ItzCrazyKns authored Feb 7, 2025
2 parents 46541e6 + 3582695 commit 7ec201d
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions src/lib/providers/gemini.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,22 @@ export const loadGeminiChatModels = async () => {
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;
Expand Down

0 comments on commit 7ec201d

Please sign in to comment.