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
26b751ad
"vscode:/vscode.git/clone" did not exist on "11db3989ce04c4adf1d2c624d2618c6fc04d63f5"
Commit
26b751ad
authored
Apr 16, 2026
by
KnowSky404
Committed by
陈曦
Apr 17, 2026
Browse files
fix: restore ctx pool ws mode option in account ui
parent
1ac0bd05
Changes
3
Show whitespace changes
Inline
Side-by-side
frontend/src/components/account/BulkEditAccountModal.vue
View file @
26b751ad
...
@@ -921,6 +921,7 @@ import {
...
@@ -921,6 +921,7 @@ import {
getPresetMappingsByPlatform
getPresetMappingsByPlatform
}
from
'
@/composables/useModelWhitelist
'
}
from
'
@/composables/useModelWhitelist
'
import
{
import
{
OPENAI_WS_MODE_CTX_POOL
,
OPENAI_WS_MODE_OFF
,
OPENAI_WS_MODE_OFF
,
OPENAI_WS_MODE_PASSTHROUGH
,
OPENAI_WS_MODE_PASSTHROUGH
,
isOpenAIWSModeEnabled
,
isOpenAIWSModeEnabled
,
...
@@ -1069,6 +1070,7 @@ const isOpenAIModelRestrictionDisabled = computed(
...
@@ -1069,6 +1070,7 @@ const isOpenAIModelRestrictionDisabled = computed(
const
openAIWSModeOptions
=
computed
(()
=>
[
const
openAIWSModeOptions
=
computed
(()
=>
[
{
value
:
OPENAI_WS_MODE_OFF
,
label
:
t
(
'
admin.accounts.openai.wsModeOff
'
)
}
,
{
value
:
OPENAI_WS_MODE_OFF
,
label
:
t
(
'
admin.accounts.openai.wsModeOff
'
)
}
,
{
value
:
OPENAI_WS_MODE_CTX_POOL
,
label
:
t
(
'
admin.accounts.openai.wsModeCtxPool
'
)
}
,
{
value
:
OPENAI_WS_MODE_PASSTHROUGH
,
label
:
t
(
'
admin.accounts.openai.wsModePassthrough
'
)
}
{
value
:
OPENAI_WS_MODE_PASSTHROUGH
,
label
:
t
(
'
admin.accounts.openai.wsModePassthrough
'
)
}
])
])
const
openAIWSModeConcurrencyHintKey
=
computed
(()
=>
const
openAIWSModeConcurrencyHintKey
=
computed
(()
=>
...
...
frontend/src/components/account/CreateAccountModal.vue
View file @
26b751ad
...
@@ -2932,7 +2932,7 @@ import { applyInterceptWarmup } from '@/components/account/credentialsBuilder'
...
@@ -2932,7 +2932,7 @@ import { applyInterceptWarmup } from '@/components/account/credentialsBuilder'
import
{
formatDateTimeLocalInput
,
parseDateTimeLocalInput
}
from
'
@/utils/format
'
import
{
formatDateTimeLocalInput
,
parseDateTimeLocalInput
}
from
'
@/utils/format
'
import
{
createStableObjectKeyResolver
}
from
'
@/utils/stableObjectKey
'
import
{
createStableObjectKeyResolver
}
from
'
@/utils/stableObjectKey
'
import
{
import
{
//
OPENAI_WS_MODE_CTX_POOL,
OPENAI_WS_MODE_CTX_POOL
,
OPENAI_WS_MODE_OFF
,
OPENAI_WS_MODE_OFF
,
OPENAI_WS_MODE_PASSTHROUGH
,
OPENAI_WS_MODE_PASSTHROUGH
,
isOpenAIWSModeEnabled
,
isOpenAIWSModeEnabled
,
...
@@ -3180,8 +3180,7 @@ const geminiSelectedTier = computed(() => {
...
@@ -3180,8 +3180,7 @@ const geminiSelectedTier = computed(() => {
const
openAIWSModeOptions
=
computed
(()
=>
[
const
openAIWSModeOptions
=
computed
(()
=>
[
{
value
:
OPENAI_WS_MODE_OFF
,
label
:
t
(
'
admin.accounts.openai.wsModeOff
'
)
}
,
{
value
:
OPENAI_WS_MODE_OFF
,
label
:
t
(
'
admin.accounts.openai.wsModeOff
'
)
}
,
// TODO: ctx_pool 选项暂时隐藏,待测试完成后恢复
{
value
:
OPENAI_WS_MODE_CTX_POOL
,
label
:
t
(
'
admin.accounts.openai.wsModeCtxPool
'
)
}
,
//
{
value
:
OPENAI_WS_MODE_CTX_POOL
,
label
:
t
(
'
admin.accounts.openai.wsModeCtxPool
'
)
}
,
{
value
:
OPENAI_WS_MODE_PASSTHROUGH
,
label
:
t
(
'
admin.accounts.openai.wsModePassthrough
'
)
}
{
value
:
OPENAI_WS_MODE_PASSTHROUGH
,
label
:
t
(
'
admin.accounts.openai.wsModePassthrough
'
)
}
])
])
...
...
frontend/src/components/account/EditAccountModal.vue
View file @
26b751ad
...
@@ -1858,7 +1858,7 @@ import { applyInterceptWarmup } from '@/components/account/credentialsBuilder'
...
@@ -1858,7 +1858,7 @@ import { applyInterceptWarmup } from '@/components/account/credentialsBuilder'
import
{
formatDateTimeLocalInput
,
parseDateTimeLocalInput
}
from
'
@/utils/format
'
import
{
formatDateTimeLocalInput
,
parseDateTimeLocalInput
}
from
'
@/utils/format
'
import
{
createStableObjectKeyResolver
}
from
'
@/utils/stableObjectKey
'
import
{
createStableObjectKeyResolver
}
from
'
@/utils/stableObjectKey
'
import
{
import
{
//
OPENAI_WS_MODE_CTX_POOL,
OPENAI_WS_MODE_CTX_POOL
,
OPENAI_WS_MODE_OFF
,
OPENAI_WS_MODE_OFF
,
OPENAI_WS_MODE_PASSTHROUGH
,
OPENAI_WS_MODE_PASSTHROUGH
,
isOpenAIWSModeEnabled
,
isOpenAIWSModeEnabled
,
...
@@ -2020,8 +2020,7 @@ const editWeeklyResetHour = ref<number | null>(null)
...
@@ -2020,8 +2020,7 @@ const editWeeklyResetHour = ref<number | null>(null)
const
editResetTimezone
=
ref
<
string
|
null
>
(
null
)
const
editResetTimezone
=
ref
<
string
|
null
>
(
null
)
const
openAIWSModeOptions
=
computed
(()
=>
[
const
openAIWSModeOptions
=
computed
(()
=>
[
{
value
:
OPENAI_WS_MODE_OFF
,
label
:
t
(
'
admin.accounts.openai.wsModeOff
'
)
}
,
{
value
:
OPENAI_WS_MODE_OFF
,
label
:
t
(
'
admin.accounts.openai.wsModeOff
'
)
}
,
// TODO: ctx_pool 选项暂时隐藏,待测试完成后恢复
{
value
:
OPENAI_WS_MODE_CTX_POOL
,
label
:
t
(
'
admin.accounts.openai.wsModeCtxPool
'
)
}
,
//
{
value
:
OPENAI_WS_MODE_CTX_POOL
,
label
:
t
(
'
admin.accounts.openai.wsModeCtxPool
'
)
}
,
{
value
:
OPENAI_WS_MODE_PASSTHROUGH
,
label
:
t
(
'
admin.accounts.openai.wsModePassthrough
'
)
}
{
value
:
OPENAI_WS_MODE_PASSTHROUGH
,
label
:
t
(
'
admin.accounts.openai.wsModePassthrough
'
)
}
])
])
const
openaiResponsesWebSocketV2Mode
=
computed
({
const
openaiResponsesWebSocketV2Mode
=
computed
({
...
...
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