Skip to content
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

Bug: Issue with API Version Compatibility When Using AzureOpenAI #244

Open
TmmmmmR opened this issue Oct 9, 2024 · 1 comment
Open

Bug: Issue with API Version Compatibility When Using AzureOpenAI #244

TmmmmmR opened this issue Oct 9, 2024 · 1 comment
Labels
bug Something isn't working triage Needs triage from engineering team

Comments

@TmmmmmR
Copy link

TmmmmmR commented Oct 9, 2024

Describe the bug
I am currently working with the Azure GPT-35-Turbo and encountered an issue while trying to implement an example from the Microsoft Semantic Kernel Java SDK. Specifically, I was following the example provided here

To Reproduce
Upon execution, I received the following error messages indicating a problem related to the API version compatibility:

14:56:37 WARN  c.m.s.s.KernelFunctionFromPrompt - Something went wrong while rendering the semantic function or while executing the text completion. Function: null.genapi. Error: Status code 400, "response_format value as json_schema is enabled only for api versions 2024-08-01-preview and later"
Exception in thread "main" com.azure.core.exception.HttpResponseException: Status code 400, "response_format value as json_schema is enabled only for api versions 2024-08-01-preview and later"

It appears that the response_format value json_schema is only enabled for API versions "2024-08-01-preview" and later. The error logs suggest that the current API version I am using does not support this feature.

Expected behavior
An additional parameter to specify the API version to use by the client.

@TmmmmmR TmmmmmR added bug Something isn't working triage Needs triage from engineering team labels Oct 9, 2024
@johnoliver
Copy link
Member

The model/api version is defined in the Azure Open AI portal, see: working-with-models

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working triage Needs triage from engineering team
Projects
None yet
Development

No branches or pull requests

2 participants