Repository navigation
feat: support Aijiau Wan 3.0 video tasks - #55
Conversation
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 875aca109c
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| if err := buildAijiauWanRequest(bodyMap); err != nil { | ||
| return nil, err | ||
| } | ||
| info.UpstreamModelName = "wan3.0-video" |
There was a problem hiding this comment.
Reject direct fast-model requests instead of downgrading them
When an Aijiau channel enables wan3.0-video-prime, requests for that explicit fast model bypass validateUnifiedWanVideoRequest because their origin model is not wan3.0, then this assignment silently changes them to standard wan3.0-video. The client can consequently be billed and logged under the prime model while receiving standard-model behavior, contradicting the integration's rejection of unsupported fast requests. Reject this model during validation or preserve it when it is actually supported rather than unconditionally rewriting every Wan model.
Useful? React with 👍 / 👎.
📝 变更描述 / Description
Aijiau 的 WAN 3.0 提交、查询和下载使用
/v1/videos/generations,原有 OpenAI 视频适配器使用/v1/videos,直接配置渠道无法完成任务链路。新增按供应商域名识别的统一端点,并保持其他供应商的路由。统一
wan3.0的通用、参考和首尾帧输入转换为 Aijiau 的wan3.0-video与 typed media;音频参考使用reference_audio。供应商没有独立 fast 模型,显式 fast 和不支持的参考视频时长元数据会在扣费前拒绝。沿用现有视频时长、分辨率计费与公开任务 ID,附接入文档。仓库不包含任何真实凭据。🚀 变更类型 / Type of change
🔗 关联任务 / Related Issue
用户请求接入 Aijiau WAN 3.0,停用旧 WAN 专用渠道并完成生产测试;无独立 Issue。
✅ 提交前检查项 / Checklist
📸 运行证明 / Proof of Work
go test ./common ./relay/channel/task/sora ./controller全部通过。git diff --check通过。wan3.0-video;真实视频生成在部署后验证。