-
Notifications
You must be signed in to change notification settings - Fork 626
fix: update Gemini 2.5 Flash Lite model config #805
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
9d063bb
44b518f
703136b
0c402c1
25e16fe
860aec4
96cecd3
c09ab1f
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -174,31 +174,53 @@ export const providerModelSettings: Record<string, { models: ProviderModelSettin | |||||||||||||||||||||||||||||||||||||||||||||||
| id: 'gemini-2.5-pro', | ||||||||||||||||||||||||||||||||||||||||||||||||
| name: 'Gemini 2.5 Pro', | ||||||||||||||||||||||||||||||||||||||||||||||||
| temperature: 0.7, | ||||||||||||||||||||||||||||||||||||||||||||||||
| maxTokens: 65536, | ||||||||||||||||||||||||||||||||||||||||||||||||
| maxTokens: 65535, | ||||||||||||||||||||||||||||||||||||||||||||||||
| contextLength: 1048576, | ||||||||||||||||||||||||||||||||||||||||||||||||
| match: ['gemini-2.5-pro'], | ||||||||||||||||||||||||||||||||||||||||||||||||
| vision: true, | ||||||||||||||||||||||||||||||||||||||||||||||||
| functionCall: true, | ||||||||||||||||||||||||||||||||||||||||||||||||
| reasoning: true | ||||||||||||||||||||||||||||||||||||||||||||||||
| }, | ||||||||||||||||||||||||||||||||||||||||||||||||
| { | ||||||||||||||||||||||||||||||||||||||||||||||||
| id: 'google/gemini-2.5-flash-image-preview', | ||||||||||||||||||||||||||||||||||||||||||||||||
| name: 'Gemini 2.5 Flash Image Preview', | ||||||||||||||||||||||||||||||||||||||||||||||||
| temperature: 0.7, | ||||||||||||||||||||||||||||||||||||||||||||||||
| maxTokens: 32768, | ||||||||||||||||||||||||||||||||||||||||||||||||
| contextLength: 32768, | ||||||||||||||||||||||||||||||||||||||||||||||||
| match: ['google/gemini-2.5-flash-image-preview', 'gemini-2.5-flash-image-preview'], | ||||||||||||||||||||||||||||||||||||||||||||||||
| vision: true, | ||||||||||||||||||||||||||||||||||||||||||||||||
| functionCall: false, | ||||||||||||||||||||||||||||||||||||||||||||||||
| reasoning: false | ||||||||||||||||||||||||||||||||||||||||||||||||
| }, | ||||||||||||||||||||||||||||||||||||||||||||||||
|
Comment on lines
+185
to
+194
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🛠️ Refactor suggestion Mark flash-image-preview as ImageGeneration Without {
id: 'google/gemini-2.5-flash-image-preview',
name: 'Gemini 2.5 Flash Image Preview',
temperature: 0.7,
maxTokens: 32768,
contextLength: 32768,
match: ['google/gemini-2.5-flash-image-preview', 'gemini-2.5-flash-image-preview'],
vision: true,
functionCall: false,
- reasoning: false
+ reasoning: false,
+ type: ModelType.ImageGeneration
},📝 Committable suggestion
Suggested change
🤖 Prompt for AI Agents |
||||||||||||||||||||||||||||||||||||||||||||||||
| { | ||||||||||||||||||||||||||||||||||||||||||||||||
| id: 'models/gemini-2.5-flash-lite-preview-06-17', | ||||||||||||||||||||||||||||||||||||||||||||||||
| name: 'Gemini 2.5 Flash-Lite Preview', | ||||||||||||||||||||||||||||||||||||||||||||||||
| temperature: 0.7, | ||||||||||||||||||||||||||||||||||||||||||||||||
| maxTokens: 65535, | ||||||||||||||||||||||||||||||||||||||||||||||||
| contextLength: 1048576, | ||||||||||||||||||||||||||||||||||||||||||||||||
| match: ['models/gemini-2.5-flash-lite-preview-06-17', 'gemini-2.5-flash-lite-preview'], | ||||||||||||||||||||||||||||||||||||||||||||||||
| vision: true, | ||||||||||||||||||||||||||||||||||||||||||||||||
| functionCall: true, | ||||||||||||||||||||||||||||||||||||||||||||||||
| reasoning: true | ||||||||||||||||||||||||||||||||||||||||||||||||
| }, | ||||||||||||||||||||||||||||||||||||||||||||||||
| { | ||||||||||||||||||||||||||||||||||||||||||||||||
| id: 'models/gemini-2.5-flash', | ||||||||||||||||||||||||||||||||||||||||||||||||
| name: 'Gemini 2.5 Flash', | ||||||||||||||||||||||||||||||||||||||||||||||||
| temperature: 0.7, | ||||||||||||||||||||||||||||||||||||||||||||||||
| maxTokens: 65536, | ||||||||||||||||||||||||||||||||||||||||||||||||
| maxTokens: 65535, | ||||||||||||||||||||||||||||||||||||||||||||||||
| contextLength: 1048576, | ||||||||||||||||||||||||||||||||||||||||||||||||
| match: ['models/gemini-2.5-flash', 'gemini-2.5-flash'], | ||||||||||||||||||||||||||||||||||||||||||||||||
| vision: true, | ||||||||||||||||||||||||||||||||||||||||||||||||
| functionCall: true, | ||||||||||||||||||||||||||||||||||||||||||||||||
| reasoning: true | ||||||||||||||||||||||||||||||||||||||||||||||||
| }, | ||||||||||||||||||||||||||||||||||||||||||||||||
| { | ||||||||||||||||||||||||||||||||||||||||||||||||
| id: 'models/gemini-2.5-flash-lite-preview-06-17', | ||||||||||||||||||||||||||||||||||||||||||||||||
| name: 'Gemini 2.5 Flash-Lite Preview', | ||||||||||||||||||||||||||||||||||||||||||||||||
| id: 'models/gemini-2.5-flash-lite', | ||||||||||||||||||||||||||||||||||||||||||||||||
| name: 'Gemini 2.5 Flash Lite', | ||||||||||||||||||||||||||||||||||||||||||||||||
| temperature: 0.7, | ||||||||||||||||||||||||||||||||||||||||||||||||
| maxTokens: 64000, | ||||||||||||||||||||||||||||||||||||||||||||||||
| contextLength: 1000000, | ||||||||||||||||||||||||||||||||||||||||||||||||
| match: ['models/gemini-2.5-flash-lite-preview-06-17', 'gemini-2.5-flash-lite-preview'], | ||||||||||||||||||||||||||||||||||||||||||||||||
| maxTokens: 65535, | ||||||||||||||||||||||||||||||||||||||||||||||||
| contextLength: 1048576, | ||||||||||||||||||||||||||||||||||||||||||||||||
| match: ['models/gemini-2.5-flash-lite', 'gemini-2.5-flash-lite'], | ||||||||||||||||||||||||||||||||||||||||||||||||
| vision: true, | ||||||||||||||||||||||||||||||||||||||||||||||||
| functionCall: true, | ||||||||||||||||||||||||||||||||||||||||||||||||
| reasoning: true | ||||||||||||||||||||||||||||||||||||||||||||||||
|
|
@@ -207,7 +229,7 @@ export const providerModelSettings: Record<string, { models: ProviderModelSettin | |||||||||||||||||||||||||||||||||||||||||||||||
| id: 'models/gemini-2.0-flash', | ||||||||||||||||||||||||||||||||||||||||||||||||
| name: 'Gemini 2.0 Flash', | ||||||||||||||||||||||||||||||||||||||||||||||||
| temperature: 0.7, | ||||||||||||||||||||||||||||||||||||||||||||||||
| maxTokens: 8192, | ||||||||||||||||||||||||||||||||||||||||||||||||
| maxTokens: 8191, | ||||||||||||||||||||||||||||||||||||||||||||||||
| contextLength: 1048576, | ||||||||||||||||||||||||||||||||||||||||||||||||
| match: ['models/gemini-2.0-flash', 'gemini-2.0-flash'], | ||||||||||||||||||||||||||||||||||||||||||||||||
| vision: true, | ||||||||||||||||||||||||||||||||||||||||||||||||
|
|
@@ -218,7 +240,7 @@ export const providerModelSettings: Record<string, { models: ProviderModelSettin | |||||||||||||||||||||||||||||||||||||||||||||||
| id: 'models/gemini-2.0-flash-lite', | ||||||||||||||||||||||||||||||||||||||||||||||||
| name: 'Gemini 2.0 Flash Lite', | ||||||||||||||||||||||||||||||||||||||||||||||||
| temperature: 0.7, | ||||||||||||||||||||||||||||||||||||||||||||||||
| maxTokens: 8192, | ||||||||||||||||||||||||||||||||||||||||||||||||
| maxTokens: 8191, | ||||||||||||||||||||||||||||||||||||||||||||||||
| contextLength: 1048576, | ||||||||||||||||||||||||||||||||||||||||||||||||
| match: ['models/gemini-2.0-flash-lite', 'gemini-2.0-flash-lite'], | ||||||||||||||||||||||||||||||||||||||||||||||||
| vision: true, | ||||||||||||||||||||||||||||||||||||||||||||||||
|
|
@@ -236,15 +258,15 @@ export const providerModelSettings: Record<string, { models: ProviderModelSettin | |||||||||||||||||||||||||||||||||||||||||||||||
| 'gemini-2.0-flash-preview-image-generation' | ||||||||||||||||||||||||||||||||||||||||||||||||
| ], | ||||||||||||||||||||||||||||||||||||||||||||||||
| vision: true, | ||||||||||||||||||||||||||||||||||||||||||||||||
| functionCall: true, | ||||||||||||||||||||||||||||||||||||||||||||||||
| functionCall: false, | ||||||||||||||||||||||||||||||||||||||||||||||||
| reasoning: false, | ||||||||||||||||||||||||||||||||||||||||||||||||
| type: ModelType.ImageGeneration | ||||||||||||||||||||||||||||||||||||||||||||||||
| }, | ||||||||||||||||||||||||||||||||||||||||||||||||
| { | ||||||||||||||||||||||||||||||||||||||||||||||||
| id: 'models/gemini-1.5-flash', | ||||||||||||||||||||||||||||||||||||||||||||||||
| name: 'Gemini 1.5 Flash', | ||||||||||||||||||||||||||||||||||||||||||||||||
| temperature: 0.7, | ||||||||||||||||||||||||||||||||||||||||||||||||
| maxTokens: 8192, | ||||||||||||||||||||||||||||||||||||||||||||||||
| maxTokens: 8191, | ||||||||||||||||||||||||||||||||||||||||||||||||
| contextLength: 1048576, | ||||||||||||||||||||||||||||||||||||||||||||||||
| match: ['models/gemini-1.5-flash', 'gemini-1.5-flash'], | ||||||||||||||||||||||||||||||||||||||||||||||||
| vision: true, | ||||||||||||||||||||||||||||||||||||||||||||||||
|
|
@@ -255,7 +277,7 @@ export const providerModelSettings: Record<string, { models: ProviderModelSettin | |||||||||||||||||||||||||||||||||||||||||||||||
| id: 'models/gemini-1.5-pro', | ||||||||||||||||||||||||||||||||||||||||||||||||
| name: 'Gemini 1.5 Pro', | ||||||||||||||||||||||||||||||||||||||||||||||||
| temperature: 0.7, | ||||||||||||||||||||||||||||||||||||||||||||||||
| maxTokens: 8192, | ||||||||||||||||||||||||||||||||||||||||||||||||
| maxTokens: 8191, | ||||||||||||||||||||||||||||||||||||||||||||||||
| contextLength: 2097152, | ||||||||||||||||||||||||||||||||||||||||||||||||
| match: ['models/gemini-1.5-pro', 'gemini-1.5-pro'], | ||||||||||||||||||||||||||||||||||||||||||||||||
| vision: true, | ||||||||||||||||||||||||||||||||||||||||||||||||
|
|
@@ -2314,6 +2336,17 @@ export const providerModelSettings: Record<string, { models: ProviderModelSettin | |||||||||||||||||||||||||||||||||||||||||||||||
| // OpenRouter提供商特定模型配置 | ||||||||||||||||||||||||||||||||||||||||||||||||
| openrouter: { | ||||||||||||||||||||||||||||||||||||||||||||||||
| models: [ | ||||||||||||||||||||||||||||||||||||||||||||||||
| { | ||||||||||||||||||||||||||||||||||||||||||||||||
| id: 'google/gemini-2.5-flash-image-preview', | ||||||||||||||||||||||||||||||||||||||||||||||||
| name: 'Gemini 2.5 Flash Image Preview', | ||||||||||||||||||||||||||||||||||||||||||||||||
| temperature: 0.7, | ||||||||||||||||||||||||||||||||||||||||||||||||
| maxTokens: 32768, | ||||||||||||||||||||||||||||||||||||||||||||||||
| contextLength: 32768, | ||||||||||||||||||||||||||||||||||||||||||||||||
| match: ['google/gemini-2.5-flash-image-preview', 'gemini-2.5-flash-image-preview'], | ||||||||||||||||||||||||||||||||||||||||||||||||
| vision: true, | ||||||||||||||||||||||||||||||||||||||||||||||||
| functionCall: false, | ||||||||||||||||||||||||||||||||||||||||||||||||
| reasoning: false | ||||||||||||||||||||||||||||||||||||||||||||||||
| }, | ||||||||||||||||||||||||||||||||||||||||||||||||
|
Comment on lines
+2339
to
+2349
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🛠️ Refactor suggestion OpenRouter mirror: set ImageGeneration type as well Keep provider parity; add {
id: 'google/gemini-2.5-flash-image-preview',
name: 'Gemini 2.5 Flash Image Preview',
temperature: 0.7,
maxTokens: 32768,
contextLength: 32768,
match: ['google/gemini-2.5-flash-image-preview', 'gemini-2.5-flash-image-preview'],
vision: true,
functionCall: false,
- reasoning: false
+ reasoning: false,
+ type: ModelType.ImageGeneration
},📝 Committable suggestion
Suggested change
🤖 Prompt for AI Agents |
||||||||||||||||||||||||||||||||||||||||||||||||
| { | ||||||||||||||||||||||||||||||||||||||||||||||||
| id: 'deepseek-r1-0528:free', | ||||||||||||||||||||||||||||||||||||||||||||||||
| name: 'DeepSeek R1-0528:free', | ||||||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||||||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Duplicate model entry: models/gemini-2.5-flash-lite appears twice
The second block is an exact duplicate and will cause UI duplication and config ambiguity.
{ id: 'models/gemini-2.5-flash-lite', name: 'Gemini 2.5 Flash-Lite', temperature: 0.7, maxTokens: 65535, contextLength: 1048576, match: ['models/gemini-2.5-flash-lite', 'gemini-2.5-flash-lite'], vision: true, functionCall: true, reasoning: true, thinkingBudget: -1 // 动态思维 }, - { - id: 'models/gemini-2.5-flash-lite', - name: 'Gemini 2.5 Flash-Lite', - temperature: 0.7, - maxTokens: 65535, - contextLength: 1048576, - match: ['models/gemini-2.5-flash-lite', 'gemini-2.5-flash-lite'], - vision: true, - functionCall: true, - reasoning: true, - thinkingBudget: -1 // 动态思维 - },📝 Committable suggestion
🤖 Prompt for AI Agents