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
c0c322ba
Commit
c0c322ba
authored
Mar 07, 2026
by
shaw
Browse files
chore: openai账号模型映射新增claude->gpt快捷映射按钮
parent
d35c5cd4
Changes
1
Hide whitespace changes
Inline
Side-by-side
frontend/src/composables/useModelWhitelist.ts
View file @
c0c322ba
...
...
@@ -280,7 +280,10 @@ const openaiPresetMappings = [
{
label
:
'
GPT-5.1
'
,
from
:
'
gpt-5.1
'
,
to
:
'
gpt-5.1
'
,
color
:
'
bg-orange-100 text-orange-700 hover:bg-orange-200 dark:bg-orange-900/30 dark:text-orange-400
'
},
{
label
:
'
GPT-5.2
'
,
from
:
'
gpt-5.2
'
,
to
:
'
gpt-5.2
'
,
color
:
'
bg-red-100 text-red-700 hover:bg-red-200 dark:bg-red-900/30 dark:text-red-400
'
},
{
label
:
'
GPT-5.4
'
,
from
:
'
gpt-5.4
'
,
to
:
'
gpt-5.4
'
,
color
:
'
bg-rose-100 text-rose-700 hover:bg-rose-200 dark:bg-rose-900/30 dark:text-rose-400
'
},
{
label
:
'
GPT-5.1 Codex
'
,
from
:
'
gpt-5.1-codex
'
,
to
:
'
gpt-5.1-codex
'
,
color
:
'
bg-cyan-100 text-cyan-700 hover:bg-cyan-200 dark:bg-cyan-900/30 dark:text-cyan-400
'
}
{
label
:
'
GPT-5.1 Codex
'
,
from
:
'
gpt-5.1-codex
'
,
to
:
'
gpt-5.1-codex
'
,
color
:
'
bg-cyan-100 text-cyan-700 hover:bg-cyan-200 dark:bg-cyan-900/30 dark:text-cyan-400
'
},
{
label
:
'
Haiku→5.4
'
,
from
:
'
claude-haiku-4-5-20251001
'
,
to
:
'
gpt-5.4
'
,
color
:
'
bg-emerald-100 text-emerald-700 hover:bg-emerald-200 dark:bg-emerald-900/30 dark:text-emerald-400
'
},
{
label
:
'
Opus→5.4
'
,
from
:
'
claude-opus-4-6
'
,
to
:
'
gpt-5.4
'
,
color
:
'
bg-purple-100 text-purple-700 hover:bg-purple-200 dark:bg-purple-900/30 dark:text-purple-400
'
},
{
label
:
'
Sonnet→5.4
'
,
from
:
'
claude-sonnet-4-6
'
,
to
:
'
gpt-5.4
'
,
color
:
'
bg-blue-100 text-blue-700 hover:bg-blue-200 dark:bg-blue-900/30 dark:text-blue-400
'
}
]
const
soraPresetMappings
:
{
label
:
string
;
from
:
string
;
to
:
string
;
color
:
string
}[]
=
[]
...
...
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