Skip to content

Conversation

@roomote
Copy link
Contributor

@roomote roomote bot commented Dec 4, 2025

This PR attempts to address Issue #9802. Feedback and guidance are welcome!

Summary

Added support for Amazon Nova 2 Lite model in the Bedrock provider, as requested in issue #9802.

Changes

  • Added amazon.nova-lite-v2:0 model definition to packages/types/src/providers/bedrock.ts
  • Configured with 300k context window and image support (matching Nova Lite v1 capabilities)
  • Set pricing slightly higher than Nova Lite v1 but still competitive with Claude Haiku 4.5
  • Enabled prompt caching and native tools support

Testing

  • ✅ Type checking passes
  • ✅ All existing tests pass
  • ✅ Linting passes

Notes

The model configuration is based on the issue description mentioning that Nova 2 Lite is comparable to Claude Haiku 4.5. The exact pricing and capabilities may need adjustment once official AWS documentation is available.

Fixes #9802

- Added amazon.nova-lite-v2:0 model definition
- Configured with 300k context window and image support
- Set pricing comparable to Claude Haiku 4.5 as mentioned in issue
- Supports prompt caching and native tools

Fixes #9802
@roomote
Copy link
Contributor Author

roomote bot commented Dec 4, 2025

Rooviewer Clock   See task on Roo Cloud

All issues resolved. The model has been correctly configured with the right model ID, pricing, and placement.

  • Move nova-lite-v2 definition to be placed immediately after nova-lite-v1 for better code organization
Previous reviews

Mention @roomote in a comment to request specific changes to this pull request or fix all unresolved issues.

Comment on lines 85 to 99
"amazon.nova-lite-v2:0": {
maxTokens: 5000,
contextWindow: 300_000,
supportsImages: true,
supportsPromptCache: true,
supportsNativeTools: true,
inputPrice: 0.075,
outputPrice: 0.3,
cacheWritesPrice: 0.075, // per million tokens
cacheReadsPrice: 0.01875, // per million tokens
minTokensPerCachePoint: 1,
maxCachePoints: 1,
cachableFields: ["system"],
description: "Amazon Nova 2 Lite - Comparable to Claude Haiku 4.5",
},
Copy link
Contributor Author

Choose a reason for hiding this comment

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

The nova-lite-v2 model should be placed immediately after nova-lite-v1 (line 70) rather than after nova-micro-v1 (line 84). This maintains the logical grouping of model versions together (Pro v1, Pro latency-optimized, Lite v1, Lite v2, Micro v1) which improves code readability and makes it easier to compare related models.

Fix it with Roo Code or mention @roomote and request a fix.

Copy link
Contributor

Choose a reason for hiding this comment

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

@roomote
Input Price = $0.33
OutputPrice = $2.75
Cache read input tokens will be 75% less than on-demand input token price
Context Window = 1M

Copy link
Contributor Author

@roomote roomote bot Dec 5, 2025

Choose a reason for hiding this comment

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

Fixaroo Clock   See task on Roo Cloud

Fixed the reported issues. All local checks passed.

View commit | Revert commit

@hannesrudolph hannesrudolph added the Issue/PR - Triage New issue. Needs quick review to confirm validity and assign labels. label Dec 4, 2025
@Smartsheet-JB-Brown
Copy link
Contributor

@roomote the json block for nova lite 2 should be the following, make the changs.

"amazon.nova-lite-v2:0": {
maxTokens: 5000,
contextWindow: 1_000_000,
supportsImages: true,
supportsPromptCache: true,
supportsNativeTools: true,
inputPrice: 0.30,
outputPrice: 2.5,
cacheWritesPrice: 0,
cacheReadsPrice: 0.075,
minTokensPerCachePoint: 1,
maxCachePoints: 1,
cachableFields: ["system"],
description: "Amazon Nova 2 Lite - Comparable to Claude Haiku 4.5",
}

@roomote
Copy link
Contributor Author

roomote bot commented Dec 5, 2025

Fixaroo Clock   See task on Roo Cloud

Fixed the reported issues. All local checks passed.

View commit | Revert commit

@Smartsheet-JB-Brown
Copy link
Contributor

@ronyblum looks right to me, double check and let @hannesrudolph know please

@ronyblum
Copy link
Contributor

ronyblum commented Dec 5, 2025

@hannesrudolph LGTM following the price update and last commit!
cc @Smartsheet-JB-Brown

@jbearak
Copy link

jbearak commented Dec 8, 2025

This seems to work. However, according to the official documentation, the model ID is us.amazon.nova-2-lite-v1:0

@ronyblum
Copy link
Contributor

ronyblum commented Dec 8, 2025

@roomote Change the model id to amazon.nova-2-lite-v1:0 in place of amazon.nova-lite-v2:0

@roomote
Copy link
Contributor Author

roomote bot commented Dec 8, 2025

Fixaroo Clock   See task on Roo Cloud

Updated the model ID from amazon.nova-lite-v2:0 to amazon.nova-2-lite-v1:0 as requested. All local checks passed.

View commit | Revert commit

@ronyblum
Copy link
Contributor

ronyblum commented Dec 8, 2025

This seems to work. However, according to the official documentation, the model ID is us.amazon.nova-2-lite-v1:0

Thanks - Updated.
us. prefix is added as part of the Geo Cross region checkbox

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

Labels

Issue/PR - Triage New issue. Needs quick review to confirm validity and assign labels.

Projects

Status: Triage

Development

Successfully merging this pull request may close these issues.

[ENHANCEMENT] Add support for Amazon Nova 2 Lite in the bedrock provider options

6 participants