Repository navigation
fix(astraflow): MiniMax-H3 视频模型标注 ark-video 端点 - #167
Conversation
AstraFlow 渠道的端点推导按模型名识别视频模型,VideoGenerationModels 缺少 minimax-h3,导致 MiniMax-H3 落到文本分支,定价页与 /v1/models 显示 openai/openai-response。 - 名单补充 minimax-h3;IsOpenAIVideoModel 排除上游按 token 计费的 minimax-h3-context-ir,避免同名文本模型被误标为视频 - 补 AstraFlow 表驱动用例,锁定 ark-video 与 context-ir 的回归 Co-Authored-By: Claude Code <[email protected]>
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info
📝 Walkthrough
Merge Risk: ⚪ Minimal · up to
|
|
This pull request does not currently match the merge queue conditions, so it cannot be queued from here. The box comes back if it matches again. |
问题
AstraFlow(59)渠道上的
MiniMax-H3是视频任务模型,但定价页和GET /v1/models的supported_endpoint_types返回["openai","openai-response"],代码示例也按聊天渲染。原因
GetEndpointTypesByChannelType的 AstraFlow 分支用IsOpenAIVideoModel判断视频模型;VideoGenerationModels只有 seedance/sora/kling/wan3.0-video,MiniMax-H3落到文本分支。修改
common/model.go:VideoGenerationModels增加minimax-h3;IsOpenAIVideoModel排除minimax-h3-context-ir(上游按 token 计费的文本模型,避免同名子串误标)。common/endpoint_type_test.go:补 AstraFlow 表驱动用例,锁定MiniMax-H3 → ark-video与minimax-h3-context-ir → openai/openai-response。验证
["openai","openai-response"]),修改后通过GOWORK=off go build ./...GOWORK=off go test -race ./common/GOWORK=off go test -race ./controller/ -skip '^TestRunPluginLoop'GOWORK=off go test -race ./model/ -run 'TestPricing|TestGetPreferredModelOwnerChannelTypes'go test -race -skip '^TestRunPluginLoop'通过;TestRunPluginLoop*会访问127.0.0.1:1,本机 WSL 下连接挂起(与本改动无关,单独跑也超时)部署注意
若线上模型元数据显式写了 endpoints,部署后需要清理:元数据端点是追加语义,非空值还会覆盖管理页显示。视频模型按规范留空,由渠道类型推导。
🤖 Generated with Claude Code
Summary by CodeRabbit