Skip to content

Commit 236f9a5

Browse files
committed
docs(prompts): drop duplicate anthropic import and registry key
Artifact from the AI-SDK provider swap script. The original snippet had both openai and anthropic in the registry; collapsing openai → anthropic left { anthropic, anthropic } and a duplicate import line. Spotted in PR review.
1 parent 82dad78 commit 236f9a5

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

docs/ai/prompts.mdx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -225,9 +225,8 @@ import { chat } from "@trigger.dev/sdk/ai";
225225
import { prompts } from "@trigger.dev/sdk";
226226
import { streamText, createProviderRegistry } from "ai";
227227
import { anthropic } from "@ai-sdk/anthropic";
228-
import { anthropic } from "@ai-sdk/anthropic";
229228

230-
const registry = createProviderRegistry({ anthropic, anthropic });
229+
const registry = createProviderRegistry({ anthropic });
231230

232231
const systemPrompt = prompts.define({
233232
id: "my-chat-system",

0 commit comments

Comments
 (0)