Roo-Code/packages/types
Roo Code e7b170e2ca fix(bedrock): only apply cross-region inference prefix to supported models
This fix addresses Issue #10473 where users received "The provided model
identifier is invalid" error when using AWS Bedrock with models like Qwen
while cross-region inference was enabled.

Changes:
- Add BEDROCK_CROSS_REGION_INFERENCE_MODEL_IDS constant listing models that
  support cross-region inference (Anthropic Claude models only)
- Modify getModel() to check if model supports cross-region inference before
  applying the region prefix
- Update tests to reflect the new behavior

When cross-region inference is enabled but a model does not support it
(e.g., Qwen, Amazon Nova, Meta Llama), the prefix is now silently skipped
instead of being applied and causing an invalid model identifier error.
2026-01-06 02:39:11 +00:00
..
npm Release: v1.99.0 (#10447) 2026-01-03 15:12:51 -05:00
scripts Fix publish-npm script (#7093) 2025-08-14 03:17:56 -07:00
src fix(bedrock): only apply cross-region inference prefix to supported models 2026-01-06 02:39:11 +00:00
.gitignore Task metadata (#7092) 2025-08-14 03:14:17 -07:00
eslint.config.mjs Task metadata (#7092) 2025-08-14 03:14:17 -07:00
package.json Task metadata (#7092) 2025-08-14 03:14:17 -07:00
tsconfig.json Task metadata (#7092) 2025-08-14 03:14:17 -07:00
tsup.config.ts Bump @roo-code/types to v1.42.0 (#6610) 2025-08-02 13:27:59 -07:00
vitest.config.ts Convert jest tests to vitest and disable default watch mode for vitest (#4568) 2025-06-11 14:48:01 -07:00