We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ac0d4fe commit 87f120bCopy full SHA for 87f120b
libs/langchain/src/agents/middleware/modelFallback.ts
@@ -15,10 +15,10 @@ import { createMiddleware } from "../middleware.js";
15
* import { createAgent, modelFallbackMiddleware } from "langchain";
16
*
17
* // Create middleware with fallback models (not including primary)
18
- * const fallback = modelFallbackMiddleware({
+ * const fallback = modelFallbackMiddleware(
19
* "openai:gpt-4o-mini", // First fallback
20
* "anthropic:claude-sonnet-4-5-20250929", // Second fallback
21
- * });
+ * );
22
23
* const agent = createAgent({
24
* model: "openai:gpt-4o", // Primary model
0 commit comments