-
Notifications
You must be signed in to change notification settings - Fork 3.8k
Python: Azure AI Inference Function Calling #7035
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
Python: Azure AI Inference Function Calling #7035
Conversation
...antic_kernel/connectors/ai/azure_ai_inference/services/azure_ai_inference_chat_completion.py
Show resolved
Hide resolved
...antic_kernel/connectors/ai/azure_ai_inference/services/azure_ai_inference_chat_completion.py
Outdated
Show resolved
Hide resolved
...antic_kernel/connectors/ai/azure_ai_inference/services/azure_ai_inference_chat_completion.py
Outdated
Show resolved
Hide resolved
...antic_kernel/connectors/ai/azure_ai_inference/services/azure_ai_inference_chat_completion.py
Show resolved
Hide resolved
python/semantic_kernel/connectors/ai/open_ai/services/open_ai_chat_completion_base.py
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Couple of comments
...antic_kernel/connectors/ai/azure_ai_inference/services/azure_ai_inference_chat_completion.py
Show resolved
Hide resolved
...antic_kernel/connectors/ai/azure_ai_inference/services/azure_ai_inference_chat_completion.py
Outdated
Show resolved
Hide resolved
...antic_kernel/connectors/ai/azure_ai_inference/services/azure_ai_inference_chat_completion.py
Outdated
Show resolved
Hide resolved
...antic_kernel/connectors/ai/azure_ai_inference/services/azure_ai_inference_chat_completion.py
Outdated
Show resolved
Hide resolved
Python 3.10 Test Coverage Report •
Python 3.10 Unit Test Overview
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
might be worth the effort to go already do a mypy and test coverage check on this!
...antic_kernel/connectors/ai/azure_ai_inference/services/azure_ai_inference_chat_completion.py
Outdated
Show resolved
Hide resolved
...ntic_kernel/connectors/ai/azure_ai_inference/services/azure_ai_inference_conversion_utils.py
Outdated
Show resolved
Hide resolved
Will do it after my current Ollama work |
...antic_kernel/connectors/ai/azure_ai_inference/services/azure_ai_inference_chat_completion.py
Outdated
Show resolved
Hide resolved
...antic_kernel/connectors/ai/azure_ai_inference/services/azure_ai_inference_chat_completion.py
Outdated
Show resolved
Hide resolved
### 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. --> Now that the Function Choice abstraction has been implemented in Python, it is time to extend this feature to other connectors. The first (OAI and AOAI are not included) connector to be granted this honor is the Azure AI Inference connector. ### Description <!-- Describe your changes, the overall approach, the underlying design. These notes will help understanding how your code works. Thanks! --> 1. Add function calling to Azure AI Inference. ### Contribution Checklist <!-- Before submitting this PR, please make sure: --> - [ ] The code builds clean without any errors or warnings - [ ] 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 - [ ] All unit tests pass, and I have added new tests where possible - [ ] I didn't break anyone 😄
Motivation and Context
Now that the Function Choice abstraction has been implemented in Python, it is time to extend this feature to other connectors. The first (OAI and AOAI are not included) connector to be granted this honor is the Azure AI Inference connector.
Description
Contribution Checklist