Skip to content

Anthropic: remove limitation "System message must be at beginning of message list." #1022

Open
@nicolablago

Description

@nicolablago

If one tries to call an Anthropic model with multiple system message, the error message reads

"System message must be at beginning of message list."

The check comes from here:

if i != 0:
raise ValueError("System message must be at beginning of message list.")

Why is this limitation in place?

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