microsoft / semantic-kernel

Integrate cutting-edge LLM technology quickly and easily into your apps
https://aka.ms/semantic-kernel
MIT License
21.89k stars 3.26k forks source link

Python: AzureChatCompletion doesn't use default API VERSION if one is not supplied #8679

Closed moonbox3 closed 1 month ago

moonbox3 commented 1 month ago

Describe the bug If you create an AzureChatCompletion object and don't supply an API_VERSION either via a .env file or passed in through the constructor, a default API VERSION will not be used.

moonbox3 commented 1 month ago

This should be a non-issue, we have a default API VERSION as part of the settings: https://github.com/microsoft/semantic-kernel/blob/51c209ab7cee95c56a8bf74b6e1616633d75b2cf/python/semantic_kernel/connectors/ai/open_ai/settings/azure_open_ai_settings.py#L74

moonbox3 commented 1 month ago

Unable to reproduce this.