Skip to content

Fix: Empty assistant messages crash Bedrock translation #2208

Description

@Killusions

Some clients (like Opencode) send assistant messages with empty content (no text, no tool calls) in the message history during multi-turn conversations. AWS Bedrock's Converse API rejects these. It would be nice to skip empty-content assistant messages during conversion instead of passing them through and getting a provider error.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions