feat: add Gemini 2.0 Flash Exp models
# Description Added two new Gemini models: - gemini-2.0-flash-exp - gemini-2.0-flash-thinking-exp-01-21 # Changes Made - Updated src/lib/providers/gemini.ts to include new models - Maintained consistent configuration with existing models # Testing - Tested locally using Docker - Verified models appear in UI and are selectable - Confirmed functionality with sample queries # Additional Notes These models expand the available options for users who want to use the latest Gemini capabilities.
This commit is contained in:
parent
46541e6c0c
commit
3582695054
1 changed files with 16 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Reference in a new issue