这是indexloc提供的服务,不要输入任何密码
Skip to content

Add option to disable streaming via env for generic openai provider #4079

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Conversation

shatfield4
Copy link
Collaborator

Pull Request Type

  • ✨ feat
  • 🐛 fix
  • ♻️ refactor
  • 💄 style
  • 🔨 chore
  • 📝 docs

Relevant Issues

resolves #4063

What is in this change?

Additional Information

Developer Validations

  • I ran yarn lint from the root of the repo & committed changes
  • Relevant documentation has been updated
  • I have tested my code functionality
  • Docker build succeeds locally

Copy link
Member

@timothycarambat timothycarambat left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is it supposed to be true explictly or any value? Either the docs are wrong and need ot be updated or this line can be updated
https://github.com/Mintplex-Labs/anythingllm-docs/pull/177/files#diff-f77de0c7d4ad5c26479f2df4c3e6a6ac69170e83dd0665bc0cc0ed1698dbcd6eR211-R217

// This would be any value
if("GENERIC_OPENAI_STREAMING_DISABLED" in process.env) return false;

@shatfield4
Copy link
Collaborator Author

Is it supposed to be true explictly or any value? Either the docs are wrong and need ot be updated or this line can be updated https://github.com/Mintplex-Labs/anythingllm-docs/pull/177/files#diff-f77de0c7d4ad5c26479f2df4c3e6a6ac69170e83dd0665bc0cc0ed1698dbcd6eR211-R217

// This would be any value
if("GENERIC_OPENAI_STREAMING_DISABLED" in process.env) return false;

Fixed typo in docs.

@timothycarambat timothycarambat merged commit 07129e8 into master Jul 1, 2025
@timothycarambat timothycarambat deleted the 4063-feat-disable-streaming-for-llm-providers-with-env-setting branch July 1, 2025 19:47
cabwds pushed a commit to cabwds/anything-llm that referenced this pull request Jul 3, 2025
…intplex-Labs#4079)

* add option to disable streaming via env for generic openai provider

* move env check to streamingEnabled
@timothycarambat
Copy link
Member

timothycarambat commented Jul 14, 2025

resolved #2804

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[FEAT]: Disable streaming for LLM Provider(s) with ENV setting
2 participants