Skip to content

botocore.errorfactory.ValidationException with Claude 3.5 models and below [Langchain-aws 0.2.15] #411

Open
@sibijr

Description

@sibijr

After upgrading to 0.2.15, I started seeing the below errors while working with Claude 3.5 or below models. The same code works fine with 3.7.

    | botocore.errorfactory.ValidationException: An error occurred (ValidationException) when calling the InvokeModelWithResponseStream operation: Malformed input request: #: subject must not be valid against schema {"required":["messages"]}#/messages/1/content: expected type: String, found: JSONArray#/messages/1/content: expected minimum item count: 1, found: 0, please reformat your input and try again.

Any help?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions