You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi @Zihan-Zhu! I'm Dosu and I’m helping the llama_index team.
The error you're seeing (UnprocessableEntityError: Error code: 422 - {'error': {'code': 'OperationParameterInvalid', 'message': 'Streaming responses are not currently supported'}) occurs because AzureOpenAI does not currently support streaming responses for chat completions. This is a limitation of the Azure OpenAI service itself, not LlamaIndex.
According to the LlamaIndex streaming documentation, streaming is supported by certain LLMs such as OpenAI, HuggingFaceLLM, and most LangChain LLMs, but AzureOpenAI is not listed among them. When you attempt to use streaming with an LLM that doesn't support it, you will encounter an error like the one you described.
How to resolve this:
You will need to disable streaming when using AzureOpenAI. In your code, avoid using streaming-related methods or parameters (such as stream=True), and instead use the standard completion methods that return the full response at once.
If you require streaming, you would need to use a provider that supports it, such as OpenAI's own API.
Summary:
AzureOpenAI does not support streaming responses for chat completions, which is why you are seeing this error. To resolve it, use non-streaming methods with AzureOpenAI, or switch to a provider that supports streaming if that functionality is required for your application. Reference
Im not sure why, but it says streaming is not supported. Is there something about your azure deployment that would disable streaming? First time ive ever seen that error from azure
LLMs that support streaming are required to use agents right now
Question Validation
Question
Dear team,
When I tried build and run a simple FunctionAgent and using a QueryEngineTool, there is a error pop-up like this:
My code looks like:
Is there anyone know how to solve this issue? Thanks!
Best,
Zihan
The text was updated successfully, but these errors were encountered: