mirror of
https://github.com/Mintplex-Labs/anything-llm.git
synced 2026-06-15 23:20:32 +03:00
Add option to disable streaming via env for generic openai provider (#4079)
* add option to disable streaming via env for generic openai provider * move env check to streamingEnabled
This commit is contained in:
@@ -57,6 +57,7 @@ class GenericOpenAiLLM {
|
||||
}
|
||||
|
||||
streamingEnabled() {
|
||||
if (process.env.GENERIC_OPENAI_STREAMING_DISABLED === "true") return false;
|
||||
return "streamGetChatCompletion" in this;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user