Skip to content

feat: 新增支持目前已发布的amazon nova model - #1882

Merged
seefs001 merged 2 commits into
QuantumNous:mainfrom
ShibaInu64:feature/nova-model
Sep 26, 2025
Merged

seefs001 merged 2 commits into
QuantumNous:mainfrom
ShibaInu64:feature/nova-model

Conversation

@ShibaInu64

@ShibaInu64 ShibaInu64 commented Sep 26, 2025 •

Copy link
Copy Markdown

例行检查

  • 我已确认目前没有类似 issue
  • 我已确认我已升级到最新版本
  • 我已完整查看过项目 README,已确定现有版本无法满足需求
  • 我理解并愿意跟进此 issue,协助测试和提供反馈
  • 我理解并认可上述内容,并理解项目维护者精力有限,不遵循规则的 issue 可能会被无视或直接关闭

功能描述
支持的Model ID:https://docs.aws.amazon.com/bedrock/latest/userguide/models-supported.html
把当前Amazon已经发布支持的nova model都添加到代码中,方便直接能选择
image

应用场景
调用方式不变,之前已经支持

Summary by CodeRabbit

  • New Features
    • Added support for additional Amazon Nova models: Canvas v1, Reel v1 (v0 & v1), and Sonic v1.
    • These models are now selectable in the AWS integration and enable expanded generation and media capabilities.
    • Several of the new models are available across regions (US, EU, APAC) to broaden deployment options.

@coderabbitai

coderabbitai Bot commented Sep 26, 2025 •

Copy link
Copy Markdown
Contributor

Walkthrough

Added multiple Amazon Nova model ID mappings and expanded their cross-region permissions in relay/channel/aws/constants.go. No other files or control flow were modified.

Changes

Cohort / File(s) Change summary
AWS Nova model mappings & regions
relay/channel/aws/constants.go
Added model ID mappings to awsModelIDMap: nova-canvas-v1:0 → amazon.nova-canvas-v1:0, nova-reel-v1:0 → amazon.nova-reel-v1:0, nova-reel-v1:1 → amazon.nova-reel-v1:1, nova-sonic-v1:0 → amazon.nova-sonic-v1:0. Extended awsModelCanCrossRegionMap with cross-region entries: amazon.nova-premier-v1:0 (us), amazon.nova-canvas-v1:0 (us, eu, apac), amazon.nova-reel-v1:0 (us, eu, apac), amazon.nova-reel-v1:1 (us), amazon.nova-sonic-v1:0 (us, eu, apac). Changes are additive mappings/permissions only.

Sequence Diagram(s)

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~10 minutes

Possibly related PRs

Suggested reviewers

  • Calcium-Ion

Poem

I twitch my ears at maps so neat,
New Nova names beneath my feet—
Canvas, Reel, and Sonic sing,
Hopping through regions like a spring.
Carrots queued, the code is bright,
A rabbit cheers at every sight. 🥕

Pre-merge checks and finishing touches

✅ Passed checks (3 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title Check ✅ Passed The title succinctly describes the primary change—adding support for the newly released Amazon Nova models—and follows a clear “feat:” conventional commit prefix without extraneous detail, making it easy for team members to understand the main change at a glance.
Docstring Coverage ✅ Passed No functions found in the changes. Docstring coverage check skipped.
✨ Finishing touches
  • 📝 Generate Docstrings
🧪 Generate unit tests
  • Create PR with unit tests
  • Post copyable unit tests in a comment

📜 Recent review details

Configuration used: CodeRabbit UI

Review profile: CHILL

Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 6c51819 and 127029d.

📒 Files selected for processing (1)
  • relay/channel/aws/constants.go (2 hunks)
🚧 Files skipped from review as they are similar to previous changes (1)
  • relay/channel/aws/constants.go

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Actionable comments posted: 1

📜 Review details

Configuration used: CodeRabbit UI

Review profile: CHILL

Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 6992fd2 and 6c51819.

📒 Files selected for processing (1)
  • relay/channel/aws/constants.go (1 hunks)

Comment thread relay/channel/aws/constants.go Resolved
@seefs001
seefs001 merged commit d2defa1 into QuantumNous:main Sep 26, 2025
x22x22 pushed a commit to x22x22/new-api that referenced this pull request Apr 24, 2026
feat: 新增支持目前已发布的amazon nova model
salem-2007 added a commit to salem-2007/new-api that referenced this pull request Sep 10, 2026
feat: 新增支持目前已发布的amazon nova model
junjundesk pushed a commit to junjundesk/new-api that referenced this pull request Oct 3, 2026
feat: 新增支持目前已发布的amazon nova model
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.

2 participants