What's the best way to use """with_structured_output""" on Anthropic model??? #30545
Unanswered
sangwooklee0201
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Checked other resources
Commit to Help
Example Code
Description
I am a noob, so am following some langchain cookbook especially this one:
When I ran it, it ran fine, output looks good, following Joke model.
But when I try it with "ChatAnthropic", I got following error:
What am I doing wrong? What should I do to get the correct answer like I did with Open AI model?
System Info
langchain==0.3.11
langchain-anthropic==0.3.10
langchain-chroma==0.2.0
langchain-community==0.3.11
langchain-core==0.3.49
langchain-openai==0.2.12
langchain-text-splitters==0.3.4
Beta Was this translation helpful? Give feedback.
All reactions