Skip to content

Commit 54958b2

Browse files
authored
Merge pull request #426 from miurla/feat/update-gemini-2.0
feat(models): update Gemini models
2 parents 3b9ab6e + fcafd07 commit 54958b2

File tree

3 files changed

+20
-6
lines changed

3 files changed

+20
-6
lines changed

README.md

+3-2
Original file line numberDiff line numberDiff line change
@@ -175,8 +175,9 @@ This will allow you to use Morphic as your default search engine in the browser.
175175
- gpt-4-turbo
176176
- gpt-3.5-turbo
177177
- Google
178-
- Gemini 1.5 Pro (Unstable)
179-
- Gemini 2.0 Flash (Experimental)
178+
- Gemini 2.0 Pro (Experimental)
179+
- Gemini 2.0 Flash Thinking (Experimental)
180+
- Gemini 2.0 Flash
180181
- Anthropic
181182
- Claude 3.5 Sonnet
182183
- Claude 3.5 Hike

lib/types/models.ts

+10-4
Original file line numberDiff line numberDiff line change
@@ -43,14 +43,20 @@ export const models: Model[] = [
4343
providerId: 'deepseek'
4444
},
4545
{
46-
id: 'gemini-1.5-pro-002',
47-
name: 'Gemini 1.5 Pro',
46+
id: 'gemini-2.0-pro-exp-02-05',
47+
name: 'Gemini 2.0 Pro (Exp)',
4848
provider: 'Google Generative AI',
4949
providerId: 'google'
5050
},
5151
{
52-
id: 'gemini-2.0-flash-exp',
53-
name: 'Gemini 2.0 Flash (Experimental)',
52+
id: 'gemini-2.0-flash-thinking-exp-01-21',
53+
name: 'Gemini 2.0 Flash Thinking (Exp)',
54+
provider: 'Google Generative AI',
55+
providerId: 'google'
56+
},
57+
{
58+
id: 'gemini-2.0-flash',
59+
name: 'Gemini 2.0 Flash',
5460
provider: 'Google Generative AI',
5561
providerId: 'google'
5662
},

lib/utils/registry.ts

+7
Original file line numberDiff line numberDiff line change
@@ -129,6 +129,8 @@ export function getToolCallModel(model?: string) {
129129
const ollamaModel =
130130
process.env.NEXT_PUBLIC_OLLAMA_TOOL_CALL_MODEL || modelName
131131
return getModel(`ollama:${ollamaModel}`)
132+
case 'google':
133+
return getModel('google:gemini-2.0-flash')
132134
default:
133135
return getModel('openai:gpt-4o-mini')
134136
}
@@ -141,6 +143,11 @@ export function isToolCallSupported(model?: string) {
141143
if (provider === 'ollama') {
142144
return false
143145
}
146+
147+
if (provider === 'google') {
148+
return false
149+
}
150+
144151
// Deepseek R1 is not supported
145152
// Deepseek v3's tool call is unstable, so we include it in the list
146153
return !modelName?.includes('deepseek')

0 commit comments

Comments
 (0)