Find answers from the community

Updated 6 months ago

I'm getting `ValueError: Expected

At a glance

A community member is experiencing a ValueError when trying to use Structured Outputs with the OpenAI Pydantic Program using version 0.8.65. The community members discuss that the latest OpenAI client has broken this feature, but a fix is available in the source code, not yet deployed to PyPI. The fix is expected to be released sometime today, and community members suggest installing from the source repository in the meantime. It is confirmed that the issue is resolved in version 0.8.66.

Useful resources
I'm getting ValueError: Expected function call in ai_message.additional_kwargs, but none found. when trying to use Structured Outputs, the same error using OpenAI Pydantic Program
I'm using 0.8.65 with the code of the documentation

Is the code up-to-date on that feature ?
L
A
10 comments
ah I see, yea the latest openai client broke this.

We have a fix but it's only in source, not on pypi yet
When is the fix gonna be deployed ?
sometime today πŸ™‚ You can always install from source too

pip install git+https://github.com/run-llama/llama_index
oh idk that was possible
@Logan M Is it fixed in the 0.8.66 ?
or should be
I tried and yes it is, thanks !
You can archive the thread, if that's a thing
Add a reply
Sign up and join the conversation on Discord