You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
In the schema
AssistantMessage(BaseModel):
role: Literal["assistant"] = "assistant" content: str |list | None
tool_calls: list[ToolCall] | None = None.
The content should be a str or a list (for bedrock models) cause when we send the message and get the tool use request from response the assistant message has a list in the content s which can be passed as is.
Same can be done for UserMessage
Please complete the following information:
Which API you used: [e.g. /chat/completions] /chat/completions
Which model you used: [e.g. anthropic.claude-3-sonnet-20240229-v1:0] anthropic.claude-3-sonnet-20240229-v1:0
To Reproduce
Steps to reproduce the behavior. If possible, please share an example request.
Expected behavior
A clear and concise description of what you expected to happen.
Screenshots
If applicable, add screenshots to help explain your problem (please DO NOT include sensitive information).
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered:
Describe the bug
In the schema
AssistantMessage(BaseModel):
role: Literal["assistant"] = "assistant"
content: str |list | None
tool_calls: list[ToolCall] | None = None.
The content should be a str or a list (for bedrock models) cause when we send the message and get the tool use request from response the assistant message has a list in the content s which can be passed as is.
Same can be done for UserMessage
Please complete the following information:
To Reproduce
Steps to reproduce the behavior. If possible, please share an example request.
Expected behavior
A clear and concise description of what you expected to happen.
Screenshots
If applicable, add screenshots to help explain your problem (please DO NOT include sensitive information).
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: