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
There is a chance that the model returns an AI message with the content being a list, AIMessage(content=[], tool_calls=[...]).
When involving this message in the conversation, the tool calls gets trimmed out. It runs into the if block on line 83 because the content type is list and never gets into the elif block for the tool call on line 141.
There is a chance that the model returns an AI message with the content being a
list
,AIMessage(content=[], tool_calls=[...])
.When involving this message in the conversation, the tool calls gets trimmed out. It runs into the
if
block on line83
because the content type islist
and never gets into theelif
block for the tool call on line141
.langchain-google/libs/vertexai/langchain_google_vertexai/_anthropic_utils.py
Lines 83 to 141 in af44de3
This will eventually get into a bad request error.
The text was updated successfully, but these errors were encountered: