{"version":3,"file":"anthropic.mjs","names":[],"sources":["../src/anthropic.ts"],"sourcesContent":["import { createAnthropic } from \"@ai-sdk/anthropic\";\nimport type { ProviderPlugin } from \"./gateway-delegate\";\n\n/**\n * Anthropic-wire provider plugin for the gateway delegate. Pass to\n * `createGatewayDelegate({ providers: [anthropic] })` to handle\n * `\"anthropic/<model>\"` slugs.\n *\n * Requires `@ai-sdk/anthropic` (an optional peer dependency — install it yourself).\n */\nexport const anthropic: ProviderPlugin = {\n\twireFormat: \"anthropic\",\n\tcreate: ({ modelId, fetch, baseURL }) =>\n\t\t// apiKey is a placeholder — the gateway handles auth (unified billing / BYOK)\n\t\t// and the delegate strips the x-api-key header on the gateway path.\n\t\tcreateAnthropic({ apiKey: \"unused\", fetch, ...(baseURL ? { baseURL } : {}) })(modelId),\n};\n"],"mappings":";;;;;;;;;AAUA,MAAa,YAA4B;CACxC,YAAY;CACZ,SAAS,EAAE,SAAS,OAAO,cAG1B,gBAAgB;EAAE,QAAQ;EAAU;EAAO,GAAI,UAAU,EAAE,QAAQ,IAAI,CAAC;CAAG,CAAC,CAAC,CAAC,OAAO;AACvF"}