feat(grok): 网关 Voice TTS/STT/Realtime 与分组音频定价

- 中继 xAI Voice HTTP(/tts /stt /custom-voices)与 Realtime WS(/realtime)
  仅 Grok 分组可用;账号选调度沿用 chat 能力,不依赖创作中心
- Voice URL 固定走 api.x.ai(CLI proxy base 自动回落)
- 分组级 audio_realtime / TTS / STT 单价:schema + migration 218 +
  admin API + GroupsView 表单与 i18n(无创作中心 UI)
This commit is contained in:
IanShaw027
2026-08-07 15:08:39 +08:00
parent a397724f69
commit 99ad01f6de
31 changed files with 1908 additions and 26 deletions
+10
View File
@@ -572,6 +572,10 @@ export interface Group {
video_model_prices?: VideoModelPrices
// Codex 网页搜索单次价格(USD/次);null 表示使用默认价 0.01
web_search_price_per_call: number | null
// Grok Voice 显式定价(分组级)
audio_realtime_price_per_min: number | null
audio_tts_price_per_million_chars: number | null
audio_stt_price_per_hour: number | null
// 高峰时段倍率配置
peak_rate_enabled: boolean
peak_start: string
@@ -772,6 +776,9 @@ export interface CreateGroupRequest {
video_price_1080p?: number | null
video_model_prices?: VideoModelPrices
web_search_price_per_call?: number | null
audio_realtime_price_per_min?: number | null
audio_tts_price_per_million_chars?: number | null
audio_stt_price_per_hour?: number | null
peak_rate_enabled?: boolean
peak_start?: string
peak_end?: string
@@ -828,6 +835,9 @@ export interface UpdateGroupRequest {
video_price_1080p?: number | null
video_model_prices?: VideoModelPrices
web_search_price_per_call?: number | null
audio_realtime_price_per_min?: number | null
audio_tts_price_per_million_chars?: number | null
audio_stt_price_per_hour?: number | null
peak_rate_enabled?: boolean
peak_start?: string
peak_end?: string