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
93db889a
Commit
93db889a
authored
Jan 13, 2026
by
shaw
Browse files
fix: Gemini OpenCode 教程 baseURL 改为 v1beta
parent
0df7385c
Changes
1
Show whitespace changes
Inline
Side-by-side
frontend/src/components/keys/UseKeyModal.vue
View file @
93db889a
...
...
@@ -376,6 +376,10 @@ const currentFiles = computed((): FileConfig[] => {
const
trimmed
=
`
${
baseRoot
}
/antigravity`
.
replace
(
/
\/
+$/
,
''
)
return
trimmed
.
endsWith
(
'
/v1beta
'
)
?
trimmed
:
`
${
trimmed
}
/v1beta`
})()
const
geminiBase
=
(()
=>
{
const
trimmed
=
baseRoot
.
replace
(
/
\/
+$/
,
''
)
return
trimmed
.
endsWith
(
'
/v1beta
'
)
?
trimmed
:
`
${
trimmed
}
/v1beta`
})()
if
(
activeClientTab
.
value
===
'
opencode
'
)
{
switch
(
props
.
platform
)
{
...
...
@@ -384,7 +388,7 @@ const currentFiles = computed((): FileConfig[] => {
case
'
openai
'
:
return
[
generateOpenCodeConfig
(
'
openai
'
,
apiBase
,
apiKey
)]
case
'
gemini
'
:
return
[
generateOpenCodeConfig
(
'
gemini
'
,
ap
iBase
,
apiKey
)]
return
[
generateOpenCodeConfig
(
'
gemini
'
,
gemin
iBase
,
apiKey
)]
case
'
antigravity
'
:
return
[
generateOpenCodeConfig
(
'
antigravity-claude
'
,
antigravityBase
,
apiKey
,
'
opencode.json (Claude)
'
),
...
...
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