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
67acac10
Commit
67acac10
authored
Jan 12, 2026
by
cyhhao
Browse files
fix: adjust OpenCode OpenAI example store placement
parent
c206d12d
Changes
1
Hide whitespace changes
Inline
Side-by-side
frontend/src/components/keys/UseKeyModal.vue
View file @
67acac10
...
...
@@ -525,14 +525,16 @@ function generateOpenCodeConfig(platform: string, baseUrl: string, apiKey: strin
[
platform
]:
{
options
:
{
baseURL
:
baseUrl
,
apiKey
,
...(
platform
===
'
openai
'
?
{
store
:
false
}
:
{})
apiKey
}
}
}
const
openaiModels
=
{
'
gpt-5.2-codex
'
:
{
name
:
'
GPT-5.2 Codex
'
,
options
:
{
store
:
false
},
variants
:
{
low
:
{},
medium
:
{},
...
...
@@ -574,9 +576,26 @@ function generateOpenCodeConfig(platform: string, baseUrl: string, apiKey: strin
provider
[
platform
].
models
=
openaiModels
}
const
agent
=
platform
===
'
openai
'
?
{
build
:
{
options
:
{
store
:
false
}
},
plan
:
{
options
:
{
store
:
false
}
}
}
:
undefined
const
content
=
JSON
.
stringify
(
{
provider
,
...(
agent
?
{
agent
}
:
{}),
$schema
:
'
https://opencode.ai/config.json
'
},
null
,
...
...
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