fix(grok): 完善按模型视频价格矩阵

This commit is contained in:
IanShaw027
2026-08-07 14:42:00 +08:00
parent eb2e73df3d
commit 2c8836e40b
10 changed files with 277 additions and 20 deletions
+6
View File
@@ -522,6 +522,8 @@ export interface PaginationConfig {
export type GroupPlatform = 'anthropic' | 'openai' | 'gemini' | 'antigravity' | 'grok' | 'composite'
export type VideoModelPrices = Record<string, Record<string, number>>
export type SubscriptionType = 'standard' | 'subscription'
export interface OpenAIMessagesDispatchModelConfig {
@@ -566,6 +568,8 @@ export interface Group {
video_price_480p: number | null
video_price_720p: number | null
video_price_1080p: number | null
// Optional model-family x resolution overrides for Grok video pricing.
video_model_prices?: VideoModelPrices
// Codex 网页搜索单次价格(USD/次);null 表示使用默认价 0.01
web_search_price_per_call: number | null
// 高峰时段倍率配置
@@ -766,6 +770,7 @@ export interface CreateGroupRequest {
video_price_480p?: number | null
video_price_720p?: number | null
video_price_1080p?: number | null
video_model_prices?: VideoModelPrices
web_search_price_per_call?: number | null
peak_rate_enabled?: boolean
peak_start?: string
@@ -821,6 +826,7 @@ export interface UpdateGroupRequest {
video_price_480p?: number | null
video_price_720p?: number | null
video_price_1080p?: number | null
video_model_prices?: VideoModelPrices
web_search_price_per_call?: number | null
peak_rate_enabled?: boolean
peak_start?: string