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
169a4b9d
Commit
169a4b9d
authored
Feb 25, 2026
by
cagedbird043
Browse files
feat: 补齐 OpenAI OpenCode 模板模型配置
parent
15f3ffb1
Changes
1
Hide whitespace changes
Inline
Side-by-side
frontend/src/components/keys/UseKeyModal.vue
View file @
169a4b9d
...
...
@@ -534,8 +534,104 @@ function generateOpenCodeConfig(platform: string, baseUrl: string, apiKey: strin
}
}
const
openaiModels
=
{
'
gpt-5-codex
'
:
{
name
:
'
GPT-5 Codex
'
,
limit
:
{
context
:
400000
,
output
:
128000
},
options
:
{
store
:
false
},
variants
:
{
low
:
{},
medium
:
{},
high
:
{}
}
},
'
gpt-5.1-codex
'
:
{
name
:
'
GPT-5.1 Codex
'
,
limit
:
{
context
:
400000
,
output
:
128000
},
options
:
{
store
:
false
},
variants
:
{
low
:
{},
medium
:
{},
high
:
{}
}
},
'
gpt-5.1-codex-max
'
:
{
name
:
'
GPT-5.1 Codex Max
'
,
limit
:
{
context
:
400000
,
output
:
128000
},
options
:
{
store
:
false
},
variants
:
{
low
:
{},
medium
:
{},
high
:
{}
}
},
'
gpt-5.1-codex-mini
'
:
{
name
:
'
GPT-5.1 Codex Mini
'
,
limit
:
{
context
:
400000
,
output
:
128000
},
options
:
{
store
:
false
},
variants
:
{
low
:
{},
medium
:
{},
high
:
{}
}
},
'
gpt-5.2
'
:
{
name
:
'
GPT-5.2
'
,
limit
:
{
context
:
400000
,
output
:
128000
},
options
:
{
store
:
false
},
variants
:
{
low
:
{},
medium
:
{},
high
:
{},
xhigh
:
{}
}
},
'
gpt-5.3-codex-spark
'
:
{
name
:
'
GPT-5.3 Codex Spark
'
,
limit
:
{
context
:
128000
,
output
:
32000
},
options
:
{
store
:
false
},
variants
:
{
low
:
{},
medium
:
{},
high
:
{},
xhigh
:
{}
}
},
'
gpt-5.3-codex
'
:
{
name
:
'
GPT-5.3 Codex
'
,
limit
:
{
context
:
400000
,
output
:
128000
},
options
:
{
store
:
false
},
...
...
@@ -548,6 +644,10 @@ function generateOpenCodeConfig(platform: string, baseUrl: string, apiKey: strin
},
'
gpt-5.2-codex
'
:
{
name
:
'
GPT-5.2 Codex
'
,
limit
:
{
context
:
400000
,
output
:
128000
},
options
:
{
store
:
false
},
...
...
@@ -557,6 +657,21 @@ function generateOpenCodeConfig(platform: string, baseUrl: string, apiKey: strin
high
:
{},
xhigh
:
{}
}
},
'
codex-mini-latest
'
:
{
name
:
'
Codex Mini
'
,
limit
:
{
context
:
200000
,
output
:
100000
},
options
:
{
store
:
false
},
variants
:
{
low
:
{},
medium
:
{},
high
:
{}
}
}
}
const
geminiModels
=
{
...
...
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