Skip to content

feat(azure-openai): Add structured outputs support#1407

Merged
joshua-mo-143 merged 3 commits into0xPlaygrounds:mainfrom
austinsimpsond41:main
Feb 23, 2026
Merged

feat(azure-openai): Add structured outputs support#1407
joshua-mo-143 merged 3 commits into0xPlaygrounds:mainfrom
austinsimpsond41:main

Conversation

@austinsimpsond41
Copy link
Copy Markdown
Contributor

Hi @joshua-mo-143,

Thank you for getting structured outputs into Rig! I've copied the code from the regular OpenAI provider into the Azure OpenAI provider.

I also noticed that the ToolChoice struct was being imported from openrouter instead of openai. I'm assuming this was done by mistake, and fixed it. I wanted to call this out on the off chance it wasn't a mistake.

I added a test for structured outputs as well, and it passed without issues.

Let me know if you need anything else.

Thank you!

@joshua-mo-143
Copy link
Copy Markdown
Contributor

Hey Austin thanks for the PR! I'm currently away from the computer for a couple of days due to Rust Nation but will get back to you asap

@austinsimpsond41
Copy link
Copy Markdown
Contributor Author

Enjoy! Talk to you when you're back.

Copy link
Copy Markdown
Contributor

@joshua-mo-143 joshua-mo-143 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just one comment!

Rest looks fine.

Comment thread rig/rig-core/src/providers/azure.rs
@joshua-mo-143 joshua-mo-143 added this pull request to the merge queue Feb 23, 2026
Merged via the queue into 0xPlaygrounds:main with commit 6d79a90 Feb 23, 2026
6 checks passed
@github-actions github-actions Bot mentioned this pull request Feb 23, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants