Skip to content

Error BadRequestError: Error code: 400 #59

Description

@mmichelli

I sometimes get an error that the content is empty.

chat.toolloop(conversation)

BadRequestError: Error code: 400 - {'type': 'error', 'error': {'type': 'invalid_request_error', 'message': 'messages: text content blocks must be non-empty'}}

In the history:
{'role': 'assistant', 'content': ''},

I'm using
claudette: 0.1.2
AnthropicVertex: 0.43.1

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions