Structured Output Fails with ChatTogether Model #27332
Unanswered
mail2mhossain
asked this question in
Q&A
Replies: 2 comments
-
I have the same issue with other models.
How to solve? |
Beta Was this translation helpful? Give feedback.
0 replies
-
Structured output by default uses function calling under the hood. You need to use a model that supports this feature. Together lists them here. For example, |
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.
-
Checked other resources
Commit to Help
Example Code
Description
I am trying to get a structured output from ChatTogether but failed. Getting following error:
openai.BadRequestError: Error code: 400 - {'error': {'message': 'meta-llama/Llama-3.2-90B-Vision-Instruct-Turbo is not supported for JSON mode/function calling', 'type': 'invalid_request_error', 'param': None, 'code': 'constraints_model'}}
System Info
langchain Version: 0.3.2
langchain-together Version: 0.2.0
openai Version: 1.45.1
Windows 11
Python Version: 3.11.9
Beta Was this translation helpful? Give feedback.
All reactions