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
225fd035
Commit
225fd035
authored
Mar 06, 2026
by
shaw
Browse files
chore: 更新codex配置部分支持gpt-5.4的长上下文
parent
fb7d1346
Changes
1
Hide whitespace changes
Inline
Side-by-side
frontend/src/components/keys/UseKeyModal.vue
View file @
225fd035
...
@@ -512,12 +512,14 @@ function generateOpenAIFiles(baseUrl: string, apiKey: string): FileConfig[] {
...
@@ -512,12 +512,14 @@ function generateOpenAIFiles(baseUrl: string, apiKey: string): FileConfig[] {
// config.toml content
// config.toml content
const
configContent
=
`model_provider = "OpenAI"
const
configContent
=
`model_provider = "OpenAI"
model = "gpt-5.
3-codex
"
model = "gpt-5.
4
"
review_model = "gpt-5.
3-codex
"
review_model = "gpt-5.
4
"
model_reasoning_effort = "
x
high"
model_reasoning_effort = "high"
disable_response_storage = true
disable_response_storage = true
network_access = "enabled"
network_access = "enabled"
windows_wsl_setup_acknowledged = true
windows_wsl_setup_acknowledged = true
model_context_window = 1000000
model_auto_compact_token_limit = 900000
[model_providers.OpenAI]
[model_providers.OpenAI]
name = "OpenAI"
name = "OpenAI"
...
@@ -549,12 +551,14 @@ function generateOpenAIWsFiles(baseUrl: string, apiKey: string): FileConfig[] {
...
@@ -549,12 +551,14 @@ function generateOpenAIWsFiles(baseUrl: string, apiKey: string): FileConfig[] {
// config.toml content with WebSocket v2
// config.toml content with WebSocket v2
const
configContent
=
`model_provider = "OpenAI"
const
configContent
=
`model_provider = "OpenAI"
model = "gpt-5.
3-codex
"
model = "gpt-5.
4
"
review_model = "gpt-5.
3-codex
"
review_model = "gpt-5.
4
"
model_reasoning_effort = "
x
high"
model_reasoning_effort = "high"
disable_response_storage = true
disable_response_storage = true
network_access = "enabled"
network_access = "enabled"
windows_wsl_setup_acknowledged = true
windows_wsl_setup_acknowledged = true
model_context_window = 1000000
model_auto_compact_token_limit = 900000
[model_providers.OpenAI]
[model_providers.OpenAI]
name = "OpenAI"
name = "OpenAI"
...
...
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