Skip to content

Python: Support structured outputs with Azure AI inference chat completion. #12183

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

Merged
merged 6 commits into from
May 21, 2025

Conversation

moonbox3
Copy link
Contributor

Motivation and Context

The Azure AI inference SDK released support for structured outputs for chat completions (for models that support it). We had not brought this into SK. This PR adds functionality and the ability to run the structured output samples that exist today.

Description

Adds functionality to handle structured outputs for the Azure AI Inference Chat Completion calls.

Contribution Checklist

@moonbox3 moonbox3 self-assigned this May 20, 2025
@moonbox3 moonbox3 requested a review from a team as a code owner May 20, 2025 09:55
@moonbox3 moonbox3 added the python Pull requests for the Python Semantic Kernel label May 20, 2025
@moonbox3 moonbox3 added the ai connector Anything related to AI connectors label May 20, 2025
@markwallace-microsoft
Copy link
Member

markwallace-microsoft commented May 20, 2025

Python Unit Test Overview

Tests Skipped Failures Errors Time
3595 18 💤 0 ❌ 0 🔥 1m 48s ⏱️

@moonbox3 moonbox3 enabled auto-merge May 20, 2025 23:24
@moonbox3 moonbox3 added this pull request to the merge queue May 21, 2025
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks May 21, 2025
@moonbox3 moonbox3 enabled auto-merge May 21, 2025 09:24
@moonbox3 moonbox3 added this pull request to the merge queue May 21, 2025
Merged via the queue into microsoft:main with commit c084b06 May 21, 2025
28 checks passed
@moonbox3 moonbox3 deleted the az-ai-inf-stuctured-outputs branch May 21, 2025 09:36
@github-project-automation github-project-automation bot moved this to Sprint: Done in Semantic Kernel May 21, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ai connector Anything related to AI connectors python Pull requests for the Python Semantic Kernel
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

Python: Bug: response_format not supported with AzureAIInferenceChatPromptExecutionSettings
4 participants