Skip to content

[BUG] This model does not support assistant message prefill. The conversation must end with a user message. #36

@auloin

Description

@auloin

What happened?

When using the chat, there is sometimes a com.anthropic.errors.BadRequestException: 400 exception (see below relevant logs). This happens when using Claude AI's API.

I don't know the exact steps to reproduce this but after reaching this state, new messages are ignored but instead the last successful user message in the chat is repeated (in the chat history).

Relevant logs

com.anthropic.errors.BadRequestException: 400: {type=error, error={type=invalid_request_error, message=This model does not support assistant message prefill. The conversation must end with a user message.}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions