Skip to content

Feat/bedrock azure compat - #227

Merged
pedroalexleite merged 7 commits into
developfrom
feat/bedrock-azure-compat
Jun 25, 2026
Merged

pedroalexleite merged 7 commits into
developfrom
feat/bedrock-azure-compat

Conversation

@pedroalexleite

Copy link
Copy Markdown
Contributor

Makes the Bedrock provider compatible with pipelines originally configured for Azure/OpenAI.

Changes in bedrock_converse.py:

  • Append a dummy user turn when conversation ends with an assistant message (Bedrock requires user-last)
  • Translate tool_choice to Bedrock's toolChoice format inside toolConfig
  • New _process_response_format method: translates response_format → outputConfig
  • Strip tool_choice and response_format from inferenceConfig (Bedrock rejects them)

@pedroalexleite pedroalexleite self-assigned this Jun 23, 2026
@pedroalexleite
pedroalexleite changed the base branch from main to develop June 24, 2026 08:41
Comment thread libs/core/llmstudio_core/providers/bedrock_converse.py
Comment thread libs/core/llmstudio_core/providers/bedrock_converse.py
@pedroalexleite
pedroalexleite merged commit 95a2666 into develop Jun 25, 2026
5 of 6 checks passed
@pedroalexleite
pedroalexleite deleted the feat/bedrock-azure-compat branch June 25, 2026 13:08
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