Closed JLJuradoDeloitte closed 6 months ago
Hey @JLJuradoDeloitte, the Azure OpenAI service does not support streaming with assistants yet. This is why you're seeing the 400 and the "stream parameter is unrecognized" error. You can follow the "what's new" page on the MS Learn docs for any updates on its support: https://learn.microsoft.com/en-us/azure/ai-services/openai/whats-new
Confirm this is an issue with the Python library and not an underlying OpenAI API
Describe the bug
The bug arises when attempting to create a thread in the OpenAI Python library using asynchronous functions. It seems that the issue lies in passing the
stream
parameter, which is unrecognized, causing aBadRequestError
with error code 400. This error indicates that the OpenAI API does not recognize thestream
parameter as a valid parameter for thread creation. As a result, the thread creation process fails, leading to the generation of aBadRequestError
and preventing the thread from being created successfully.To Reproduce
To reproduce the behavior:
API_VERSION
,AZURE_ENDPOINT
, andAZURE_OPENAI_KEY
are correctly set with appropriate values.stream
parameter is passed, causing theBadRequestError
with error code 400 to be raised.stream
parameter is unrecognized, leading to the failure of the thread creation process.Code snippets
OS
windows
Python version
Python v3.11.2
Library version
openai v1.14.1