Skip to content

feat: support Aijiau Wan 3.0 video tasks - #55

Merged
lingozhi merged 1 commit into
mainfrom
codex/aijiau-wan3
Sep 12, 2026
Merged

lingozhi merged 1 commit into
mainfrom
codex/aijiau-wan3

Conversation

@lingozhi

Copy link
Copy Markdown
Owner

⚠️ 提交说明 / PR Notice

本次变更由 AI 辅助实现和验证,按用户要求接入 Aijiau Wan 3.0 并切换生产渠道。

📝 变更描述 / 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

  • 🐛 Bug 修复 (Bug fix)
  • ✨ 新功能 (New feature)
  • ⚡ 性能优化 / 重构 (Refactor)
  • 📝 文档更新 (Documentation)

🔗 关联任务 / Related Issue

用户请求接入 Aijiau WAN 3.0,停用旧 WAN 专用渠道并完成生产测试;无独立 Issue。

✅ 提交前检查项 / Checklist

  • 人工确认: 描述由 AI 整理,未声明已由人工撰写。
  • 非重复提交: 未做上游仓库的全面重复性检查。
  • Bug fix 说明: 此变更标记为新渠道兼容能力。
  • 变更理解: 已核对提供方文档、创作台请求及现有任务计费链路。
  • 范围聚焦: 仅包含 Aijiau WAN 接入、测试及文档。
  • 本地验证: 相关 Go 测试包全部通过。
  • 安全合规: 代码中无敏感凭据,复用原有时长和计费边界。

📸 运行证明 / Proof of Work

  • go test ./common ./relay/channel/task/sora ./controller 全部通过。
  • git diff --check 通过。
  • 本地 HTTP 夹具验证鉴权、任务查询及视频 Range 下载。
  • 生产 Key 的模型列表请求成功,确认上游模型为 wan3.0-video;真实视频生成在部署后验证。

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Sep 12, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-09-12T05:12:30.227616Z 875aca1 PR opened
ℹ️ 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" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@lingozhi
lingozhi merged commit 8209b93 into main Sep 12, 2026
1 check passed

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 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"

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge 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 👍 / 👎.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant