mirror of
https://github.com/Wei-Shaw/sub2api.git
synced 2026-12-06 00:05:30 +00:00
docs(ui): 完善 OpenAI WS 模式说明
This commit is contained in:
1 parent
cf3aca6e3b
commit
5d5b395d00
2 files changed
+8
-6
No files matched your search
@@ -613,9 +613,11 @@ export default {
|
||||
wsModeShared: 'Shared (shared)',
|
||||
wsModeDedicated: 'Dedicated (dedicated)',
|
||||
wsModeCtxPoolHint:
|
||||
'Gateway → acquire upstream WS connections from the pool; capacity is determined by configuration.',
|
||||
wsModePassthroughHint: 'Gateway → upstream WS, without a connection pool.',
|
||||
wsModeHttpBridgeHint: 'Gateway conversion → upstream HTTP/SSE.',
|
||||
'The gateway gets upstream WebSocket connections from a pool, reusing existing connections when possible. Gateway configuration sets the maximum number of connections in the pool.',
|
||||
wsModePassthroughHint:
|
||||
'The gateway opens a separate upstream WebSocket connection for each client session and relays messages in both directions, without using a connection pool.',
|
||||
wsModeHttpBridgeHint:
|
||||
'The client connects to the gateway over WebSocket. The gateway converts requests to upstream HTTP requests, then converts SSE streaming responses back into WebSocket messages for the client.',
|
||||
oauthResponsesWebsocketsV2: 'OAuth WebSocket Mode',
|
||||
oauthResponsesWebsocketsV2Desc:
|
||||
'Only applies to OpenAI OAuth. This account can use OpenAI WebSocket Mode only when enabled.',
|
||||
|
||||
@@ -698,9 +698,9 @@ export default {
|
||||
wsModeHttpBridge: 'HTTP 桥接(http_bridge)',
|
||||
wsModeShared: '共享(shared)',
|
||||
wsModeDedicated: '独享(dedicated)',
|
||||
wsModeCtxPoolHint: '网关 → 从连接池获取上游 WS 连接,数量由配置决定。',
|
||||
wsModePassthroughHint: '网关 → 上游 WS,不使用连接池。',
|
||||
wsModeHttpBridgeHint: '网关转换 → 上游 HTTP/SSE。',
|
||||
wsModeCtxPoolHint: '网关从连接池中获取上游 WebSocket 连接,优先复用已有连接。连接池最多能建立多少条连接,由网关配置决定。',
|
||||
wsModePassthroughHint: '网关为每个客户端会话单独建立上游 WebSocket 连接,转发双方的消息,不使用连接池。',
|
||||
wsModeHttpBridgeHint: '客户端通过 WebSocket 连接网关,网关将请求转换为上游 HTTP 请求,再把上游的 SSE 流式响应转换成 WebSocket 消息返回给客户端。',
|
||||
oauthResponsesWebsocketsV2: 'OAuth WebSocket Mode',
|
||||
oauthResponsesWebsocketsV2Desc:
|
||||
'仅对 OpenAI OAuth 生效。开启后该账号才允许使用 OpenAI WebSocket Mode 协议。',
|
||||
|
||||
Reference in new issue
Block a user