Azure OpenAI Studio and Python SDK: Unusual exception "Request failed with exception: Unrecognized request argument supplied: dataSources" thrown when trying to use chat with own data

William Hawkins 25 Reputation points
2023-11-12T17:28:48.7833333+00:00

Hey there!

I have set up a chatbot in the Azure OpenAI Studio as you can see here:

User's image

I then use the following code to access the endpoint in Python:
User's image

and have the following function I'm running to generate a completion:

User's image

Currently, I have this function implemented in a Flask application and am using it to retrieve responses. The problem is, I continue to get this exception thrown when a completion is attempted: "Request failed with exception: Unrecognized request argument supplied: dataSources"

I've ran 4 different apps with this function successfully and have never encountered the error. I've checked all environment variables, I'm using the right version of the API for using the BYOD adapter. I even ran the function in a simplified example in a Jupyter notebook and it generated the completion successfully. In that case, I had to ensure I was running version 0.28.1 of the openai library for the error message to resolve but that's what I'm running in the environment my Flask app uses.

When I remove the dataSources argument and run the function, it works. But, that defeats the purpose of the application I'm building and it also doesn't make sense since both the API version and openai library version support the argument.
I also see an error message when I test the endpoint in Azure OpenAI studio as you can see in the screenshot above but that only happens when I use the specific index used in this completion. I experience the same issue for any new index I try to make.

Any suggestions or help would be greatly appreciated!

Thanks,

Will

Azure OpenAI Service
Azure OpenAI Service
An Azure service that provides access to OpenAI’s GPT-3 models with enterprise capabilities.
2,646 questions
Azure AI services
Azure AI services
A group of Azure services, SDKs, and APIs designed to make apps more intelligent, engaging, and discoverable.
2,645 questions
{count} votes

1 answer

Sort by: Most helpful
  1. navba-MSFT 20,890 Reputation points Microsoft Employee
    2023-11-14T04:23:22.32+00:00

    @William Hawkins We appreciate your patience on this and please accept our sincere apologies for the inconvenience caused due to this issue.

    .

    The fix has been deployed to all regions. Please test this again and confirm if it is working fine.
    .
    -----UPDATE-----************

    Here is the RCA for the issue:

    Why it happened -

    We released a bugfix for Data Source Dropdown Not Reset, that caused the regression, making the AddYourData not usable flow throwing the error. We were setting the Datasource as null once the modal submits, which caused the entire AddYourData to have no dataSources a parameter in the payload.

    .

    What was the mitigation-

    The issue was identified on Friday night at 11:00 PM PST and was change was deployed on Monday at 11:32 AM PST. We reverted the change from the bugfix that was merged.

    Next Steps-

    We already have set up our end-to-end testing framework for Project Wednesday and will be adding more tests for all our hero scenarios this semester. This is in the plan for the team.
    .
    **
    Please do not forget to "Accept the answer” and “up-vote” wherever the information provided helps you, this can be beneficial to other community members.