Skip to content

Commit 87f120b

Browse files
fix(langchain): minor docs fix on modelFallbackMiddleware (#9392)
1 parent ac0d4fe commit 87f120b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

libs/langchain/src/agents/middleware/modelFallback.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,10 @@ import { createMiddleware } from "../middleware.js";
1515
* import { createAgent, modelFallbackMiddleware } from "langchain";
1616
*
1717
* // Create middleware with fallback models (not including primary)
18-
* const fallback = modelFallbackMiddleware({
18+
* const fallback = modelFallbackMiddleware(
1919
* "openai:gpt-4o-mini", // First fallback
2020
* "anthropic:claude-sonnet-4-5-20250929", // Second fallback
21-
* });
21+
* );
2222
*
2323
* const agent = createAgent({
2424
* model: "openai:gpt-4o", // Primary model

0 commit comments

Comments
 (0)