New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Anthropic Parsing Lists of non-objects #515
Comments
@jxnl I have a local fix for this, looks like some permission issue to push for a PR? |
hey! check this out: #521 |
Awesome, appreciate it! Am I able to get access to push? few prompt clean up things I'd like to PR |
I'll get this in and you can fork and make a PR |
Hi guys, Facing this issue, is there any fix implemented other than the Opus suggestion? |
@akarshghale can you update and then try |
Yep it is working now! |
great we'll have better support in the future, we'll set it to default in v1.0 |
What Model are you using?
Describe the bug
Code hard fails on trying to get the $ref key.
/instructor/anthropic_utils.py", line 88, in _add_params
_resolve_reference(references, details["items"]["$ref"]),
~~~~~~~~~~~~~~~~^^^^^^^^
KeyError: '$ref'
To Reproduce
Expected behavior
I'd expect to get a pydantic model with model_dump_json like
The text was updated successfully, but these errors were encountered: