Skip to content

Python: Fix Azure AI Inference connector model_extras duplication - #13066

Merged
Evan Mattson (moonbox3) merged 1 commit into
mainfrom
taochen/fix-13005
Sep 4, 2025
Merged

Evan Mattson (moonbox3) merged 1 commit into
mainfrom
taochen/fix-13005

Conversation

@TaoChenOSU

@TaoChenOSU Tao Chen (TaoChenOSU) commented Sep 3, 2025 •

Copy link
Copy Markdown
Contributor

Motivation and Context

Addresses #13005

Description

  1. Remove the extra_parameters key from AzureAIInferenceChatPromptExecutionSettings before calling the chat completion API to avoid unknown parameter error.
  2. Allow setting the API version on the AzureAIInferenceXXX connectors.

Contribution Checklist

@TaoChenOSU Tao Chen (TaoChenOSU) self-assigned this Sep 3, 2025
@TaoChenOSU Tao Chen (TaoChenOSU) added python Pull requests for the Python Semantic Kernel ai connector Anything related to AI connectors labels Sep 3, 2025
@TaoChenOSU
Tao Chen (TaoChenOSU) marked this pull request as ready for review September 3, 2025 21:26
@TaoChenOSU
Tao Chen (TaoChenOSU) requested a review from a team as a code owner September 3, 2025 21:26
@github-actions github-actions Bot changed the title Fix Azure AI Inference connector model_extras duplication Python: Fix Azure AI Inference connector model_extras duplication Sep 3, 2025
@moonbox3

Copy link
Copy Markdown
Collaborator

Python Test Coverage

Python Test Coverage Report •
FileStmtsMissCoverMissing
connectors/ai/azure_ai_inference
   azure_ai_inference_settings.py110100% 
connectors/ai/azure_ai_inference/services
   azure_ai_inference_base.py46393%103–104, 106
   azure_ai_inference_chat_completion.py1321489%128, 130–131, 140, 169, 200, 259–262, 269–270, 272–273
   azure_ai_inference_text_embedding.py250100% 
connectors/ai/open_ai/settings
   azure_open_ai_settings.py30680%130–135
TOTAL27117472782% 

Python Unit Test Overview

Tests Skipped Failures Errors Time
3717 22 💤 0 ❌ 0 🔥 1m 38s ⏱️

@moonbox3
Evan Mattson (moonbox3) added this pull request to the merge queue Sep 4, 2025
@github-merge-queue
github-merge-queue Bot removed this pull request from the merge queue due to failed status checks Sep 4, 2025
@moonbox3
Evan Mattson (moonbox3) added this pull request to the merge queue Sep 4, 2025
github-merge-queue Bot pushed a commit that referenced this pull request Sep 4, 2025
…13066)

### Motivation and Context

<!-- Thank you for your contribution to the semantic-kernel repo!
Please help reviewers and future users, providing the following
information:
  1. Why is this change required?
  2. What problem does it solve?
  3. What scenario does it contribute to?
  4. If it fixes an open issue, please link to the issue here.
-->
Addresses #13005 

### Description

<!-- Describe your changes, the overall approach, the underlying design.
These notes will help understanding how your code works. Thanks! -->
1. Remove the `extra_parameters` key from
`AzureAIInferenceChatPromptExecutionSettings` before calling the chat
completion API to avoid unknown parameter error.
2. Allow setting the API version on the `AzureAIInferenceXXX`
connectors.

### Contribution Checklist

<!-- Before submitting this PR, please make sure: -->

- [x] The code builds clean without any errors or warnings
- [x] The PR follows the [SK Contribution
Guidelines](https://github.com/microsoft/semantic-kernel/blob/main/CONTRIBUTING.md)
and the [pre-submission formatting
script](https://github.com/microsoft/semantic-kernel/blob/main/CONTRIBUTING.md#development-scripts)
raises no violations
- [x] All unit tests pass, and I have added new tests where possible
- [x] I didn't break anyone 😄
@github-merge-queue
github-merge-queue Bot removed this pull request from the merge queue due to failed status checks Sep 4, 2025
@moonbox3
Evan Mattson (moonbox3) added this pull request to the merge queue Sep 4, 2025
Merged via the queue into main with commit d7db35d Sep 4, 2025
32 of 33 checks passed
@moonbox3
Evan Mattson (moonbox3) deleted the taochen/fix-13005 branch September 4, 2025 01:35
@github-project-automation github-project-automation Bot moved this to Sprint: Done in Semantic Kernel Sep 4, 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.

3 participants