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
LLMResponse pydantic model expects a string but return type is a list. Issue can be easily fixed by changing -
return LLMResponse(content=response.content) to return LLMResponse(content=response.content[0].text)
The text was updated successfully, but these errors were encountered:
singhak-abbvie
changed the title
Error in invoke() for class AnthropicLLM
Error in invoke() and ainvoke() for class AnthropicLLM
Jan 17, 2025
LLMResponse pydantic model expects a string but return type is a list. Issue can be easily fixed by changing -
return LLMResponse(content=response.content) to return LLMResponse(content=response.content[0].text)
The text was updated successfully, but these errors were encountered: