[GH-ISSUE #398] OPENAI_API_KEY required even when using non-OpenAI models (groq, anthropic, google-genai) #255

Closed
opened 2026-06-05 17:21:18 -04:00 by yindo · 0 comments
Owner

Originally created by @syama-aot on GitHub (Mar 31, 2026).
Original GitHub issue: https://github.com/langchain-ai/deepagentsjs/issues/398

When passing model: "groq:llama-3.3-70b-versatile" to createDeepAgent(), the PatchToolCallsMiddleware at index.cjs:2971 internally creates a ChatOpenAI instance that requires OPENAI_API_KEY, causing a crash if only GROQ_API_KEY is set.

Originally created by @syama-aot on GitHub (Mar 31, 2026). Original GitHub issue: https://github.com/langchain-ai/deepagentsjs/issues/398 When passing model: "groq:llama-3.3-70b-versatile" to createDeepAgent(), the PatchToolCallsMiddleware at index.cjs:2971 internally creates a ChatOpenAI instance that requires OPENAI_API_KEY, causing a crash if only GROQ_API_KEY is set.
yindo closed this issue 2026-06-05 17:21:18 -04:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langchain-ai/deepagentsjs#255