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

While requesting Azure OpenAI I get Validation error "Extra inputs are not permitted" #43669

Open
bzashev opened this issue Apr 26, 2024 · 3 comments
Labels
Client This issue points to a problem in the data-plane of the library. customer-reported Issues that are reported by GitHub users external to the Azure organization. needs-team-attention This issue needs attention from Azure service team or SDK team OpenAI question The issue doesn't require a change to the product in order to be resolved. Most issues start as that Service Attention This issue is responsible by Azure service team.

Comments

@bzashev
Copy link

bzashev commented Apr 26, 2024

Library name and version

Azure.AI.OpenAI-1.0.0-beta.16

Query/Question

I am using the library to create the request. It goes through but I get the validation error.
My request is configured in the following way

 var client = new OpenAIClient(new Uri(ENDPOINT_URL), new AzureKeyCredential(KEY));
 var chatCompletionsOptions = new ChatCompletionsOptions()
{
    DeploymentName = DEPLOYMENT_NAME, 
    Temperature = (float)0.3,
    MaxTokens = 1024,
    NucleusSamplingFactor = 1,
    User = ACCOUNT_ID,
    ToolChoice = ChatCompletionsToolChoice.None,
    ChoiceCount = 1,
    Messages =
    {
        new ChatRequestSystemMessage(INSTRUCTIONS),
    }
};
  chatCompletionsOptions.Messages.Add(new ChatRequestUserMessage(question) { Name = ACCOUNT_ID });
  await foreach (StreamingChatCompletionsUpdate chatUpdate in client.GetChatCompletionsStreaming(chatCompletionsOptions))
{
	//PROCESS RESPONSE
}

This used to work without a hitch and I have not reports of model being changed

Any idea why this is happening?

@github-actions github-actions bot added Client This issue points to a problem in the data-plane of the library. customer-reported Issues that are reported by GitHub users external to the Azure organization. needs-team-attention This issue needs attention from Azure service team or SDK team OpenAI question The issue doesn't require a change to the product in order to be resolved. Most issues start as that Service Attention This issue is responsible by Azure service team. labels Apr 26, 2024
Copy link

Thanks for the feedback! We are routing this to the appropriate team for follow-up. cc @jpalvarezl @trrwilson.

@ericrrichards
Copy link

ericrrichards commented Apr 26, 2024

Chiming in that I have also had problems starting yesterday (April 25 2024 ~12:00 EST) in making requests to the chat completions API through the SDK when including the optional Name parameter on ChatRequestUserMessage objects (and all the other variants)

Exception details:

Azure.RequestFailedException: Service request failed.
Status: 400 (Bad Request)
 
Content:
{"error": {"requestid": "1d1feecd-e686-44bb-9419-ec95212c0bad", "code": 400, "message": "Validation error at #/messages/1/name: Extra inputs are not permitted"}}

No changes to the SDK package we are using or the models that we have deployed. This is occurring across all Azure OpenAI resources that we have deployed, and a couple of different model versions (gpt-35-turbo 0301, gpt-35-turbo-16k 0613)

Had to push a rush fix to remove usage of this Name parameter in our code to construct the chat history context for our requests to the chat completions API.

@bzashev
Copy link
Author

bzashev commented Apr 26, 2024

I can confirm that this was my problem as well. Thanks @ericrrichards you saved a bacon today :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Client This issue points to a problem in the data-plane of the library. customer-reported Issues that are reported by GitHub users external to the Azure organization. needs-team-attention This issue needs attention from Azure service team or SDK team OpenAI question The issue doesn't require a change to the product in order to be resolved. Most issues start as that Service Attention This issue is responsible by Azure service team.
Projects
None yet
Development

No branches or pull requests

2 participants