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
d217b59e
Commit
d217b59e
authored
Feb 25, 2026
by
cagedbird043
Browse files
feat: 补齐 Antigravity OpenCode 模板模型配置
parent
169a4b9d
Changes
1
Hide whitespace changes
Inline
Side-by-side
frontend/src/components/keys/UseKeyModal.vue
View file @
d217b59e
...
@@ -683,19 +683,148 @@ function generateOpenCodeConfig(platform: string, baseUrl: string, apiKey: strin
...
@@ -683,19 +683,148 @@ function generateOpenCodeConfig(platform: string, baseUrl: string, apiKey: strin
}
}
const
antigravityGeminiModels
=
{
const
antigravityGeminiModels
=
{
'
gemini-2.5-flash
'
:
{
name
:
'
Gemini 2.5 Flash
'
},
'
gemini-2.5-flash
'
:
{
'
gemini-2.5-flash-lite
'
:
{
name
:
'
Gemini 2.5 Flash Lite
'
},
name
:
'
Gemini 2.5 Flash
'
,
'
gemini-2.5-flash-thinking
'
:
{
name
:
'
Gemini 2.5 Flash Thinking
'
},
limit
:
{
'
gemini-3-flash
'
:
{
name
:
'
Gemini 3 Flash
'
},
context
:
1048576
,
'
gemini-3-pro-low
'
:
{
name
:
'
Gemini 3 Pro Low
'
},
output
:
65536
'
gemini-3-pro-high
'
:
{
name
:
'
Gemini 3 Pro High
'
},
},
'
gemini-3-pro-preview
'
:
{
name
:
'
Gemini 3 Pro Preview
'
},
modalities
:
{
'
gemini-3-pro-image
'
:
{
name
:
'
Gemini 3 Pro Image
'
}
input
:
[
'
text
'
,
'
image
'
,
'
pdf
'
],
output
:
[
'
text
'
]
},
options
:
{
thinking
:
{
budgetTokens
:
24576
,
type
:
'
disable
'
}
}
},
'
gemini-2.5-flash-lite
'
:
{
name
:
'
Gemini 2.5 Flash Lite
'
,
limit
:
{
context
:
1048576
,
output
:
65536
},
modalities
:
{
input
:
[
'
text
'
,
'
image
'
,
'
pdf
'
],
output
:
[
'
text
'
]
},
options
:
{
thinking
:
{
budgetTokens
:
24576
,
type
:
'
enabled
'
}
}
},
'
gemini-2.5-flash-thinking
'
:
{
name
:
'
Gemini 2.5 Flash (Thinking)
'
,
limit
:
{
context
:
1048576
,
output
:
65536
},
modalities
:
{
input
:
[
'
text
'
,
'
image
'
,
'
pdf
'
],
output
:
[
'
text
'
]
},
options
:
{
thinking
:
{
budgetTokens
:
24576
,
type
:
'
enabled
'
}
}
},
'
gemini-3-flash
'
:
{
name
:
'
Gemini 3 Flash
'
,
limit
:
{
context
:
1048576
,
output
:
65536
},
modalities
:
{
input
:
[
'
text
'
,
'
image
'
,
'
pdf
'
],
output
:
[
'
text
'
]
},
options
:
{
thinking
:
{
budgetTokens
:
24576
,
type
:
'
enabled
'
}
}
},
'
gemini-3.1-pro-low
'
:
{
name
:
'
Gemini 3.1 Pro Low
'
,
limit
:
{
context
:
1048576
,
output
:
65536
},
modalities
:
{
input
:
[
'
text
'
,
'
image
'
,
'
pdf
'
],
output
:
[
'
text
'
]
},
options
:
{
thinking
:
{
budgetTokens
:
24576
,
type
:
'
enabled
'
}
}
},
'
gemini-3.1-pro-high
'
:
{
name
:
'
Gemini 3.1 Pro High
'
,
limit
:
{
context
:
1048576
,
output
:
65536
},
modalities
:
{
input
:
[
'
text
'
,
'
image
'
,
'
pdf
'
],
output
:
[
'
text
'
]
},
options
:
{
thinking
:
{
budgetTokens
:
24576
,
type
:
'
enabled
'
}
}
},
'
gemini-3-pro-image
'
:
{
name
:
'
Gemini 3 Pro (Image)
'
,
limit
:
{
context
:
1048576
,
output
:
65536
},
modalities
:
{
input
:
[
'
text
'
,
'
image
'
],
output
:
[
'
image
'
]
},
options
:
{
thinking
:
{
budgetTokens
:
24576
,
type
:
'
enabled
'
}
}
}
}
}
const
claudeModels
=
{
const
claudeModels
=
{
'
claude-opus-4-5-thinking
'
:
{
name
:
'
Claude Opus 4.5 Thinking
'
},
'
claude-opus-4-5-thinking
'
:
{
'
claude-sonnet-4-5-thinking
'
:
{
name
:
'
Claude Sonnet 4.5 Thinking
'
},
name
:
'
Claude Opus 4.5 Thinking
'
,
'
claude-sonnet-4-5
'
:
{
name
:
'
Claude Sonnet 4.5
'
}
limit
:
{
context
:
200000
,
output
:
64000
}
},
'
claude-sonnet-4-5-thinking
'
:
{
name
:
'
Claude Sonnet 4.5 Thinking
'
,
limit
:
{
context
:
200000
,
output
:
64000
}
},
'
claude-sonnet-4-5
'
:
{
name
:
'
Claude Sonnet 4.5
'
,
limit
:
{
context
:
200000
,
output
:
64000
}
}
}
}
if
(
platform
===
'
gemini
'
)
{
if
(
platform
===
'
gemini
'
)
{
...
...
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