Skip to content

Support structured output in Azure OpenAI as well #1854

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

Open
philippn opened this issue Dec 3, 2024 · 3 comments
Open

Support structured output in Azure OpenAI as well #1854

philippn opened this issue Dec 3, 2024 · 3 comments

Comments

@philippn
Copy link

philippn commented Dec 3, 2024

Hi there,

Microsoft has added support for structured output in Azure AI OpenAI SDK beta 1.0.0-beta12. It's pretty similar to the feature in the original OpenAI endpoint. Please see https://github.com/Azure/azure-sdk-for-java/blob/azure-ai-openai_1.0.0-beta.12/sdk/openai/azure-ai-openai/src/samples/java/com/azure/ai/openai/StructuredOutputsResponseFormat.java for example usage.

It would be great if this could be incorporated into Spring AI. Right now the requestFormat here is still limited to JSON and TEXT (see here).

Thanks in advance and kind regards,
Philipp

@nwflte
Copy link

nwflte commented Feb 2, 2025

+1

@dev-jonghoonpark
Copy link
Contributor

dev-jonghoonpark commented Apr 18, 2025

recent related issue: #2725
I created PR about this feature : #2754

@markpollack

@markpollack
Copy link
Member

Thanks, triaging all the azure issue now. There is a PR for base support in the model, #2431 but we still need to better accommodate this native model json approach when using ChatClient

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants