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
d35c5cd4
Commit
d35c5cd4
authored
Mar 07, 2026
by
shaw
Browse files
feat: openai平台的apikey新增claude code使用教程
parent
7a353028
Changes
1
Hide whitespace changes
Inline
Side-by-side
frontend/src/components/keys/UseKeyModal.vue
View file @
d35c5cd4
...
...
@@ -269,6 +269,7 @@ const clientTabs = computed((): TabConfig[] => {
return
[
{
id
:
'
codex
'
,
label
:
t
(
'
keys.useKeyModal.cliTabs.codexCli
'
),
icon
:
TerminalIcon
},
{
id
:
'
codex-ws
'
,
label
:
t
(
'
keys.useKeyModal.cliTabs.codexCliWs
'
),
icon
:
TerminalIcon
},
{
id
:
'
claude
'
,
label
:
t
(
'
keys.useKeyModal.cliTabs.claudeCode
'
),
icon
:
TerminalIcon
},
{
id
:
'
opencode
'
,
label
:
t
(
'
keys.useKeyModal.cliTabs.opencode
'
),
icon
:
TerminalIcon
}
]
case
'
gemini
'
:
...
...
@@ -316,6 +317,9 @@ const currentTabs = computed(() => {
const
platformDescription
=
computed
(()
=>
{
switch
(
props
.
platform
)
{
case
'
openai
'
:
if
(
activeClientTab
.
value
===
'
claude
'
)
{
return
t
(
'
keys.useKeyModal.description
'
)
}
return
t
(
'
keys.useKeyModal.openai.description
'
)
case
'
gemini
'
:
return
t
(
'
keys.useKeyModal.gemini.description
'
)
...
...
@@ -329,6 +333,9 @@ const platformDescription = computed(() => {
const
platformNote
=
computed
(()
=>
{
switch
(
props
.
platform
)
{
case
'
openai
'
:
if
(
activeClientTab
.
value
===
'
claude
'
)
{
return
t
(
'
keys.useKeyModal.note
'
)
}
return
activeTab
.
value
===
'
windows
'
?
t
(
'
keys.useKeyModal.openai.noteWindows
'
)
:
t
(
'
keys.useKeyModal.openai.note
'
)
...
...
@@ -402,6 +409,9 @@ const currentFiles = computed((): FileConfig[] => {
switch
(
props
.
platform
)
{
case
'
openai
'
:
if
(
activeClientTab
.
value
===
'
claude
'
)
{
return
generateAnthropicFiles
(
baseUrl
,
apiKey
)
}
if
(
activeClientTab
.
value
===
'
codex-ws
'
)
{
return
generateOpenAIWsFiles
(
baseUrl
,
apiKey
)
}
...
...
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