{"record":{"id":"818589c2766a2377","repo":"continuedev/continue","slug":"unknown-ai-sdk-provider-this-providerid-sup","errorCode":null,"errorMessage":"Unknown AI SDK provider: \"${this.providerId}\". Supported providers: ${supportedProviders}. To use a different provider, install the @ai-sdk/* package and add it to the provider map.","messagePattern":"Unknown AI SDK provider: \"(.+?)\"\\. Supported providers: (.+?)\\. To use a different provider, install the @ai-sdk/\\* package and add it to the provider map\\.","errorType":"exception","errorClass":"Error","httpStatus":null,"severity":"error","filePath":"packages/openai-adapters/src/apis/AiSdk.ts","lineNumber":77,"sourceCode":"    if (!config.model) {\n      throw new Error(\n        \"AI SDK provider requires a model in the format '<provider>/<model>' (e.g., 'openai/gpt-4o')\",\n      );\n    }\n    const [providerId, ...modelParts] = config.model.split(\"/\");\n    this.providerId = providerId;\n    this.modelId = modelParts.join(\"/\");\n  }\n\n  private initializeProvider() {\n    if (this.provider) {\n      return;\n    }\n\n    const createFn = PROVIDER_MAP[this.providerId];\n    if (!createFn) {\n      const supportedProviders = Object.keys(PROVIDER_MAP).join(\", \");\n      throw new Error(\n        `Unknown AI SDK provider: \"${this.providerId}\". ` +\n          `Supported providers: ${supportedProviders}. ` +\n          `To use a different provider, install the @ai-sdk/* package and add it to the provider map.`,\n      );\n    }\n\n    const hasRequestOptions =\n      this.config.requestOptions &&\n      (this.config.requestOptions.headers ||\n        this.config.requestOptions.proxy ||\n        this.config.requestOptions.caBundlePath ||\n        this.config.requestOptions.clientCertificate ||\n        this.config.requestOptions.extraBodyProperties);\n\n    this.provider = createFn({\n      apiKey: this.config.apiKey ?? \"\",\n      baseURL: this.config.apiBase,\n      fetch: hasRequestOptions","sourceCodeStart":59,"sourceCodeEnd":95,"githubUrl":"https://github.com/continuedev/continue/blob/5522c6f44ca0ac3528b37244818fbfa39b5af470/packages/openai-adapters/src/apis/AiSdk.ts#L59-L95","documentation":"AiSdk looks up the provider prefix of 'provider/model' in PROVIDER_MAP; an unknown providerId means the required @ai-sdk/* package isn't in the map, and initializeProvider throws listing supported options.","triggerScenarios":"model like 'foobar/gpt-4o' where 'foobar' isn't a key of PROVIDER_MAP — called lazily on first chatCompletionNonStream/chatCompletionStream/embed.","commonSituations":"Using a provider whose @ai-sdk/* package isn't installed/registered, typos in the provider prefix, or upgrading removed a provider from the map.","solutions":["Use one of the providers listed in the error message","npm install the matching @ai-sdk/<provider> package and add it to PROVIDER_MAP as the message instructs","Fix typos in the provider prefix","Check package version for which providers ship in the map"],"exampleFix":"// before\nnew AiSdk({ model: 'mistakelabs/mistral-large' });\n\n// after\nnew AiSdk({ model: 'mistral/mistral-large' }); // after ensuring @ai-sdk/mistral is in PROVIDER_MAP","handlingStrategy":"validation","validationCode":"const provider = cfg.model.split('/')[0]; if (!PROVIDER_IDS.includes(provider)) throw new Error(`unsupported provider ${provider}`);","typeGuard":"function isKnownProvider(model: string, known: readonly string[]): boolean { return known.includes(model.split('/')[0]); }","tryCatchPattern":"try { await llm.chatCompletionStream(...) } catch (e) { if (/Unknown AI SDK provider/.test(e.message)) { /* install @ai-sdk pkg and register, or switch model */ } throw e; }","preventionTips":["Check the supported provider list before selecting model strings","Install and register the @ai-sdk/* package for custom providers","Verify provider map contents on package upgrade"],"tags":["ai-sdk","provider","lookup","packages"],"backgroundTag":"unknown-ai-provider","analyzedSha":"5522c6f44ca0ac3528b37244818fbfa39b5af470","analyzedAt":"2026-08-27T11:28:54.683Z","schemaVersion":2},"datasetVersion":"2026-08-27T13:17:12.746Z"}