OpenAI-compatible model servers can return a complete answer in one response instead of sending it in chunks. On a Linux Docker host, AnythingLLM can disable streaming for its Generic OpenAI provider when an endpoint requires that response format.
The streaming setting controls requests from the AnythingLLM server to the model endpoint. With streaming disabled, the answer appears after generation finishes, so a pause before any text appears is normal. The setting applies to Generic OpenAI connections, including workspaces using that provider; it does not change the native Ollama provider.
The Docker method requires an existing Linux installation with its server environment file mounted persistently, a configured Generic OpenAI connection, and a workspace in Chat mode using that connection. Restarting the existing container reads the edited file while retaining its provider settings and workspace data.
Installation: How to run AnythingLLM with Docker
Provider setup: Generic OpenAI connection settings
Steps to disable streaming for a Generic OpenAI provider in AnythingLLM:
- Open the persistent AnythingLLM environment file in a text editor with sudo.
$ sudo nano "$HOME/anythingllm/.env"
The path matches the Docker installation linked above, where the file is mounted at /app/server/.env. Its directory belongs to UID 1000 with mode 700, so sudo opens it from any account, and nano saves into the same file, keeping the owner the container needs. A different storage location requires its actual mounted environment file. This file can contain provider credentials, so its other contents must remain private and unchanged.
- Disable Generic OpenAI streaming by setting
GENERIC_OPENAI_STREAMING_DISABLEDtotruein the environment file.GENERIC_OPENAI_STREAMING_DISABLED=true
If the variable already exists, replace that line; otherwise, add the line at the end of the file. Keep only one active definition. The value must be lowercase true; 1 and TRUE do not enable this setting. There is no corresponding checkbox in the provider form. Removing or commenting out this line and restarting restores default streaming.
- Save the environment file in your editor.
- Restart the existing AnythingLLM container to load the setting.
A restart interrupts chat requests and document processing for everyone using the instance. Active work must finish before the restart.
$ docker restart --timeout 30 anythingllm
anythingllm is the container name from the Docker installation; another installation needs its own name. A restart keeps the existing container and mounted storage. If the flag is supplied through Docker creation options instead of the mounted file, changing those options requires container recreation.
Related: How to manage the AnythingLLM Docker service - Open your existing workspace from the AnythingLLM sidebar after the server starts.
The workspace must use the Generic OpenAI connection rather than a different workspace provider override. The pictured workspace is named Cedar Lantern; your workspace and model names can differ.
- Enter a short test question in the workspace message field.
A suitable prompt is What is 2 + 3? Reply with only the number.
- Send the question with the upward-arrow button.

- Confirm that the workspace displays a completed answer without a streaming error.
The pictured model returned 5 after generation completed. A saved environment line alone does not confirm that the model connection works. If the request still fails, the error may concern the endpoint URL, credentials, or model rather than streaming.
Related: How to view Docker logs for AnythingLLM