Skip to content

🪢 Open source agent evals & observability: Trace, evaluate, and improve LLM applications with one open platform.

fix(playground): disable stream_options for openai adapter (#4206)

Hassieb Pakzad47c06a77bd7e
diff --git a/packages/shared/src/server/llm/fetchLLMCompletion.ts b/packages/shared/src/server/llm/fetchLLMCompletion.ts
index deaf6b178c..bccd52ff04 100644
--- a/packages/shared/src/server/llm/fetchLLMCompletion.ts
+++ b/packages/shared/src/server/llm/fetchLLMCompletion.ts
@@ -99,6 +99,7 @@ export async function fetchLLMCompletion(
temperature: modelParams.temperature,
maxTokens: modelParams.max_tokens,
topP: modelParams.top_p,
+ streamUsage: false, // https://github.com/langchain-ai/langchainjs/issues/6533
callbacks,
maxRetries,
configuration: {