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:
Sean Hatfield
2025-07-01 12:47:46 -07:00
committed by GitHub
parent 76b80d149a
commit 07129e81f8

View File

@@ -57,6 +57,7 @@ class GenericOpenAiLLM {
}
streamingEnabled() {
if (process.env.GENERIC_OPENAI_STREAMING_DISABLED === "true") return false;
return "streamGetChatCompletion" in this;
}