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
836092a6
"backend/git@web.lueluesay.top:chenxi/sub2api.git" did not exist on "e12599c1b967c6349384c2ed954aa6590f976e16"
Commit
836092a6
authored
Apr 16, 2026
by
KnowSky404
Browse files
fix: restore ctx pool ws mode option in account ui
parent
3944b3d2
Changes
3
Show whitespace changes
Inline
Side-by-side
frontend/src/components/account/BulkEditAccountModal.vue
View file @
836092a6
...
@@ -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 @
836092a6
...
@@ -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 @
836092a6
...
@@ -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