-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
@azure/openai - Set response_format for GPT-4 Turbo #27860
Comments
Thanks for opening this report! This work is in progress and I will share once we make a release. |
@deyaaeldeen Same for the new seed parameter ;-) |
Hey @deyaaeldeen! Do you have any ETA on this matter? |
Tentative release date is 12/7. I'll share here once the release happens. |
Hoping this gets released today. |
This is great to see! Right now we're blocked from using GPT-4 Turbo until this feature is available. Any chance it'll be available today @deyaaeldeen? |
Our major application stopped working due GPT-4 is not giving json response as it used to give post 30th, Nov. |
Thanks for your patience. Please checkout |
Also, to answer the original question, you can do this with v1.0.0-beta.8, given a capable deployed model: client.getChatCompletions(
deploymentName,
[
{
role: "user",
content:
"Answer the following question in JSON format: What are the capital cities in Africa?",
},
],
{ responseFormat: { type: "json_object" } }
); |
Hi @joshje. Thank you for opening this issue and giving us the opportunity to assist. We believe that this has been addressed. If you feel that further discussion is needed, please add a comment with the text "/unresolve" to remove the "issue-addressed" label and continue the conversation. |
Thanks @deyaaeldeen, I'm very happy to report that this has done the trick, and we can now use |
Now that GPT-4 Turbo is available, it would be great to be able to specify the
response_format={"type": "json_object"}
when making calls to@azure/openai
client.getChatCompletions
.The text was updated successfully, but these errors were encountered: