UNPKG

ai-gateway-provider

Version:
1 lines 767 B
{"version":3,"sources":["../../src/providers/unified.ts"],"sourcesContent":["import type { OpenAICompatibleProviderSettings } from \"@ai-sdk/openai-compatible\";\nimport { createOpenAICompatible } from \"@ai-sdk/openai-compatible\";\n\nexport const createUnified = (arg?: Partial<OpenAICompatibleProviderSettings>) => {\n\treturn createOpenAICompatible({\n\t\tbaseURL: \"https://gateway.ai.cloudflare.com/v1/compat\", // intercepted and replaced with actual base URL later\n\t\tname: \"Unified\",\n\t\t...(arg || {}),\n\t});\n};\n\nexport const unified = createUnified();\n"],"mappings":";AACA,SAAS,8BAA8B;AAEhC,IAAM,gBAAgB,CAAC,QAAoD;AACjF,SAAO,uBAAuB;AAAA,IAC7B,SAAS;AAAA;AAAA,IACT,MAAM;AAAA,IACN,GAAI,OAAO,CAAC;AAAA,EACb,CAAC;AACF;AAEO,IAAM,UAAU,cAAc;","names":[]}