Open MitaWinata opened 5 months ago
@MitaWinata Thanks for reporting this issue!
Since the number of possible parameters is growing, I would probably handle this issue after we introduce Options
classes for service classes and extension methods: https://github.com/microsoft/semantic-kernel/issues/6081
Thanks @dmytrostruk for replying. Is there any ETA on when this will be introduced?
@MitaWinata Options
classes are not prioritized at the moment, but we will try to resolve it in upcoming weeks. After this, it should be relatively easy to add new ApiVersion
property.
In theory, you should be able to specify API version today in different way, by providing your own HttpClient
in AzureOpenAIChatCompletionService
constructor/extension method. Since API version is a query parameter (e.g. /completions?api-version=2024-02-01
), you can try to modify request URL by adding API version to it. Would it be possible for you to test this approach and see if it works?
If i am not mistaken , currently apiService is not yet open as a param yet in AzureOpenAIChatCompletion.
In AzureOpenAIChatCompletionService.cs
or in OpenAIServiceCollectionExtensions,cs
We would like to be able to specify which version of the api we want to use.
and