Skip to content

fix: resolve real customer model for BYO aliases in bedrock factory#103

Open
andreiancuta-uipath wants to merge 1 commit into
mainfrom
fix/bedrock-byo-base-model-id
Open

fix: resolve real customer model for BYO aliases in bedrock factory#103
andreiancuta-uipath wants to merge 1 commit into
mainfrom
fix/bedrock-byo-base-model-id

Conversation

@andreiancuta-uipath

@andreiancuta-uipath andreiancuta-uipath commented Jul 1, 2026

Copy link
Copy Markdown
Contributor

Langchain Bedrock clients try to detect model capabilities, including tool calling, from the model name. BYOM aliases can be anything, so some of them are unrecognized by the client, so it falls back to "does not support tool_call parameter" → an error is thrown.

Model VeryCustomBedddrockAlias does not currently support tool_choice. Please see https://docs.aws.amazon.com/bedrock/latest/APIReference/API_runtime_ToolChoice.html for the latest documentation on models that support tool choice.

The fix is to detect the vendor from the underlying model name (customerModel in LLMGW terms) and inject that into the clients.

Validated via local robot.

@andreiancuta-uipath andreiancuta-uipath force-pushed the fix/bedrock-byo-base-model-id branch from 1e8b6bf to d7e12f4 Compare July 2, 2026 11:27
@andreiancuta-uipath andreiancuta-uipath force-pushed the fix/bedrock-byo-base-model-id branch from d7e12f4 to 127149f Compare July 2, 2026 13:17
@andreiancuta-uipath andreiancuta-uipath changed the title fix: resolve real bedrock backing model for BYO aliases in factory fix: resolve real customer model for BYO aliases in bedrock factory Jul 2, 2026
@andreiancuta-uipath andreiancuta-uipath force-pushed the fix/bedrock-byo-base-model-id branch from 127149f to 24bb15c Compare July 2, 2026 14:34
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