Skip to content

"System message must be at beginning of message list" limitation #498

@stanyq4

Description

@stanyq4

There is a validation that enforces the system message to only be at position zero.

This is no longer applicable since Anthorpic supports multiple system messages.

The use case you are blocking is very important. We can have the first static system message, which can be wrapped into a prompt cache. We have the second system message, which is dynamic based on the user context.

If we use ChatAnthropic - everything works well, if we use ChatBedrock - it breaks.

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