feat(openai): add Live gateway support

This commit is contained in:
song
2026-07-25 12:50:46 +08:00
parent 37ed639d1e
commit e6eb23eaac
55 changed files with 2607 additions and 30 deletions
+5 -1
View File
@@ -551,6 +551,8 @@ export interface Group {
fallback_group_id_on_invalid_request: number | null
// OpenAI Messages 调度开关(用户侧需要此字段判断是否展示 Claude Code 教程)
allow_messages_dispatch?: boolean
// OpenAI Live 接口开关
allow_live: boolean
default_mapped_model?: string
messages_dispatch_model_config?: OpenAIMessagesDispatchModelConfig
require_oauth_only: boolean
@@ -742,6 +744,7 @@ export interface CreateGroupRequest {
supported_model_scopes?: string[]
models_list_config?: ModelsListConfig
allow_messages_dispatch?: boolean
allow_live?: boolean
default_mapped_model?: string
messages_dispatch_model_config?: OpenAIMessagesDispatchModelConfig
model_routing?: Record<string, number[]> | null
@@ -792,6 +795,7 @@ export interface UpdateGroupRequest {
supported_model_scopes?: string[]
models_list_config?: ModelsListConfig
allow_messages_dispatch?: boolean
allow_live?: boolean
default_mapped_model?: string
messages_dispatch_model_config?: OpenAIMessagesDispatchModelConfig
model_routing?: Record<string, number[]> | null
@@ -1511,7 +1515,7 @@ export interface CodexSessionImportResult {
// ==================== Usage & Redeem Types ====================
export type RedeemCodeType = 'balance' | 'concurrency' | 'subscription' | 'invitation'
export type UsageRequestType = 'unknown' | 'sync' | 'stream' | 'ws_v2' | 'cyber'
export type UsageRequestType = 'unknown' | 'sync' | 'stream' | 'ws_v2' | 'cyber' | 'live'
export type ImageSizeSource = 'output' | 'input' | 'default' | 'legacy'
export type ImageSizeBreakdown = Record<string, number>