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

.Net: Bug: Exception in Azure OpenAI GPT-4 ResponseFormat #9634

Open
rvinothrajendran opened this issue Nov 11, 2024 · 0 comments
Open

.Net: Bug: Exception in Azure OpenAI GPT-4 ResponseFormat #9634

rvinothrajendran opened this issue Nov 11, 2024 · 0 comments
Assignees
Labels
bug Something isn't working .NET Issue or Pull requests regarding .NET code

Comments

@rvinothrajendran
Copy link

Describe the bug
In Azure OpenAI, I created a deployment using the GPT-4 model based on version 2024-08-06, with a URI ending in api-version=2024-08-01-preview. When using the AddAzureOpenAIChatCompletion API with ResponseFormat in the kernel object, it threw an exception stating that the model does not support ResponseFormat.

To Reproduce
Steps to reproduce the behavior:
Version : Microsoft.SemanticKernel 1.28.0

Expected behavior

Screenshots

Platform

  • OS: Windows
  • IDE: Visual Studio
  • Language: C#
  • Source: NuGet package version 1.28.0

Additional context
Workaround: I used an HTTP client with the URI (including api-version=2024-08-01-preview) and applied it in the kernel object. Now, the AddAzureOpenAIChatCompletion API works as expected.

@rvinothrajendran rvinothrajendran added the bug Something isn't working label Nov 11, 2024
@markwallace-microsoft markwallace-microsoft added .NET Issue or Pull requests regarding .NET code triage labels Nov 11, 2024
@github-actions github-actions bot changed the title Bug: Exception in Azure OpenAI GPT-4 ResponseFormat .Net: Bug: Exception in Azure OpenAI GPT-4 ResponseFormat Nov 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working .NET Issue or Pull requests regarding .NET code
Projects
Status: Bug
Development

No branches or pull requests

3 participants