jxnl / instructor

structured outputs for llms
https://python.useinstructor.com/
MIT License
6.52k stars 514 forks source link

ValidationError #773

Open CodeGitte opened 2 weeks ago

CodeGitte commented 2 weeks ago

What Model are you using?

Describe the bug My collegue and I always get a ValidationError "Invalid JSON" when we run our code with instructor. The odd thing is, that sometimes it works without any error, sometimes there is the ValidationError again. We also tried it out with code from the documentation, also does not seem to work. image (1)

To Reproduce Steps to reproduce the behavior, including code snippets of the model and the input data and openai response.

Expected behavior A clear and concise description of what you expected to happen.

Screenshots If applicable, add screenshots to help explain your problem.

palako commented 2 weeks ago

We reported this the other day, I reckon this is the same issue.

mrmuke commented 4 days ago

+1 for anthropic claude

mrmuke commented 3 days ago

I think I just need this https://github.com/jxnl/instructor/pull/779 to be merged.

jxnl commented 2 days ago

doesnt look like it, the input looks like its saying shit like 'const' the llm is just bad..