mirror of
https://github.com/open-webui/open-webui.git
synced 2026-05-07 11:28:35 -05:00
[GH-ISSUE #16452] issue: Streaming response not iterable error - Organization Not Verified #17909
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @jamesmalin on GitHub (Aug 10, 2025).
Original GitHub issue: https://github.com/open-webui/open-webui/issues/16452
Check Existing Issues
Installation Method
Docker
Open WebUI Version
0.6.21
Ollama Version (if applicable)
No response
Operating System
macOS Sequoia
Browser (if applicable)
No response
Confirmation
README.md.Expected Behavior
{"error":{"message":"Your organization must be verified to stream this model. Please go to: https://platform.openai.com/settings/organization/general and click on Verify Organization. If you just verified, it can take up to 15 minutes for access to propagate.","type":"invalid_request_error","param":"stream","code":"unsupported_value"}}
Actual Behavior
{"detail":"argument of type 'JSONResponse' is not iterable"}
Steps to Reproduce
NOTE: This is PRIOR to organization verification. If you are seeing the following in your OpenAI account, you will not get the error:

git clone git@github.com:open-webui/open-webui.gitdocker run -d -p 3000:8080 -e OPENAI_API_KEY=your_secret_key -v open-webui:/app/backend/data --name open-webui --restart always ghcr.io/open-webui/open-webui:mainHello{"detail":"argument of type 'JSONResponse' is not iterable"}
Logs & Screenshots
Unfortunately, I did not take a screenshot before fixing the issue. I solved the problem which is ready for a PR, saw the real error, and then verified my organization.
Additional Information
You should see that you need to verify your organization if it has not yet been. This is helpful for users that have no idea why the response is not working.
Currently, without implementing a fix, you only see:
"argument of type 'JSONResponse' is not iterable"
@cory2005 commented on GitHub (Aug 10, 2025):
I have a similar error(I think?) using openai models but not anthropic models.
@jayzhoukj commented on GitHub (Aug 10, 2025):
I am getting the same error, but only certain OpenAI models are not working.
The following models are tested and confirmed to be working:
gpt-4gpt-4ogpt-4.1gpt-5-chat-latesto3-miniThe following models are tested and confirmed to be NOT working:
o4-mini-deep-researcho3gpt-5@tjbck commented on GitHub (Aug 10, 2025):
Should be addressed with 059cc636f6c28c6e496ffc0dc05cc0e2390981f3!
@jayzhoukj those models require responses API and not chat completions.
@jamesmalin commented on GitHub (Aug 10, 2025):
It looks like your new commit has the dictionary added in -- would have been cool to use the PR I put in (same code for that portion), but I understand you would have needed to pull it in first.
chat completions actually still works for gpt-5 btw. But, responses API allows additional functionality that was not previously available in gpt-4:

With that said, I do not see any changes that are adding that functionality. See:
https://platform.openai.com/docs/guides/latest-model?reasoning-effort-mode=chat#migrating-from-chat-completions-to-responses-api
It would be great to add the new functionality released with gpt-5 for "chain of thought (CoT)".
Edit, adding for clarity, but can be found in the URL above:
