Replies: 2 comments
-
In the mean time, you can ask explicitly to return JSON and provide an example. That already works 99% of the time without the official JSON flag. |
Beta Was this translation helpful? Give feedback.
0 replies
-
Perhaps we can just add something like this:
Somewhere around here. |
Beta Was this translation helpful? Give feedback.
0 replies
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.
Uh oh!
There was an error while loading. Please reload this page.
-
Is there a way to use model_kwargs, output_format, or anything like this to get OpenAIs JSON mode?
I don't want to format data after it comes back, I want it specifically provided as JSON.
Example code from OpenAI docu: https://platform.openai.com/docs/guides/text-generation/json-mode
Is there a way to utilize that with CrewAI Agents? I'm using langchain_openai and gpt-4-1106-preview as llm model.
Beta Was this translation helpful? Give feedback.
All reactions