Skip to content

Conversation

@christian-bromann
Copy link
Member

Problem

ChatBedrockConverse was missing lc_aliases to map Python naming conventions (model_id, region_name) from LangSmith Hub to JavaScript property names (model, region). This caused model configuration to not load correctly when pulling prompts with includeModel: true.

Solution

Added lc_aliases mapping for modelmodel_id and regionregion_name, matching the pattern used in BedrockChat.

Changes

  • Add model and region aliases to ChatBedrockConverse.lc_aliases()
  • Add test verifying deserialization works correctly

Add missing lc_aliases mapping to correctly handle deserialization of
model configuration from LangSmith Hub prompts. LangSmith Hub stores
prompts with Python naming (model_id, region_name), but the JS SDK
expects JavaScript property names (model, region).

Without these aliases, pulling prompts with includeModel: true would
fail to load the model configuration, causing fallback to defaults.

- Add model -> model_id and region -> region_name aliases
- Add test to verify deserialization works correctly
@changeset-bot
Copy link

changeset-bot bot commented Nov 4, 2025

⚠️ No Changeset found

Latest commit: c06aad7

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@christian-bromann christian-bromann merged commit 32bc4c2 into main Nov 6, 2025
24 checks passed
@christian-bromann christian-bromann deleted the cb/aws-model-id-fix branch November 6, 2025 01:36
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