Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
陈曦
sub2api
Commits
960acf19
Unverified
Commit
960acf19
authored
Feb 26, 2026
by
Wesley Liddick
Committed by
GitHub
Feb 26, 2026
Browse files
Merge pull request #632 from cagedbird043/pr/gemini-v1beta-template-align
feat: 对齐 Gemini v1beta 模型模板与映射顺序
parents
31b30a6d
7918fc28
Changes
1
Hide whitespace changes
Inline
Side-by-side
frontend/src/components/keys/UseKeyModal.vue
View file @
960acf19
...
@@ -675,11 +675,90 @@ function generateOpenCodeConfig(platform: string, baseUrl: string, apiKey: strin
...
@@ -675,11 +675,90 @@ function generateOpenCodeConfig(platform: string, baseUrl: string, apiKey: strin
}
}
}
}
const
geminiModels
=
{
const
geminiModels
=
{
'
gemini-2.0-flash
'
:
{
name
:
'
Gemini 2.0 Flash
'
},
'
gemini-2.0-flash
'
:
{
'
gemini-2.5-flash
'
:
{
name
:
'
Gemini 2.5 Flash
'
},
name
:
'
Gemini 2.0 Flash
'
,
'
gemini-2.5-pro
'
:
{
name
:
'
Gemini 2.5 Pro
'
},
limit
:
{
'
gemini-3-flash-preview
'
:
{
name
:
'
Gemini 3 Flash Preview
'
},
context
:
1048576
,
'
gemini-3-pro-preview
'
:
{
name
:
'
Gemini 3 Pro Preview
'
}
output
:
65536
},
modalities
:
{
input
:
[
'
text
'
,
'
image
'
,
'
pdf
'
],
output
:
[
'
text
'
]
}
},
'
gemini-2.5-flash
'
:
{
name
:
'
Gemini 2.5 Flash
'
,
limit
:
{
context
:
1048576
,
output
:
65536
},
modalities
:
{
input
:
[
'
text
'
,
'
image
'
,
'
pdf
'
],
output
:
[
'
text
'
]
}
},
'
gemini-2.5-pro
'
:
{
name
:
'
Gemini 2.5 Pro
'
,
limit
:
{
context
:
2097152
,
output
:
65536
},
modalities
:
{
input
:
[
'
text
'
,
'
image
'
,
'
pdf
'
],
output
:
[
'
text
'
]
},
options
:
{
thinking
:
{
budgetTokens
:
24576
,
type
:
'
enabled
'
}
}
},
'
gemini-3-flash-preview
'
:
{
name
:
'
Gemini 3 Flash Preview
'
,
limit
:
{
context
:
1048576
,
output
:
65536
},
modalities
:
{
input
:
[
'
text
'
,
'
image
'
,
'
pdf
'
],
output
:
[
'
text
'
]
}
},
'
gemini-3-pro-preview
'
:
{
name
:
'
Gemini 3 Pro Preview
'
,
limit
:
{
context
:
1048576
,
output
:
65536
},
modalities
:
{
input
:
[
'
text
'
,
'
image
'
,
'
pdf
'
],
output
:
[
'
text
'
]
},
options
:
{
thinking
:
{
budgetTokens
:
24576
,
type
:
'
enabled
'
}
}
},
'
gemini-3.1-pro-preview
'
:
{
name
:
'
Gemini 3.1 Pro Preview
'
,
limit
:
{
context
:
1048576
,
output
:
65536
},
modalities
:
{
input
:
[
'
text
'
,
'
image
'
,
'
pdf
'
],
output
:
[
'
text
'
]
},
options
:
{
thinking
:
{
budgetTokens
:
24576
,
type
:
'
enabled
'
}
}
}
}
}
const
antigravityGeminiModels
=
{
const
antigravityGeminiModels
=
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment