[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M784TQ85N3A2X7JZ7N166X5T":3,"skill-same:01M784TQ85N3A2X7JZ7N166X5T":48},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":26,"commitSha":27,"skillDirectory":28,"forksCount":29,"repositoryHtmlUrl":30,"repositoryHomepageUrl":31,"ownerHtmlUrl":32,"ownerBlogUrl":6,"ownerDescription":33,"updatedAt":34,"install":35,"resources":47},"01M784TQ85N3A2X7JZ7N166X5T","add-provider-package",null,"Guide for adding new AI provider packages to the AI SDK. Use when creating a new @ai-sdk\u002F\u003Cprovider> package to integrate an AI service into the SDK.","Lord1Egypt\u002Fawesome-skill-forge","Lord1Egypt","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F99746359?v=4","01M7592YDNT0XK9WJ0T2MQVPDN","Mohamed Mounir Ali AL Keshita","01M75GRFNHC8VZNWEB8DKDE433",3,"MIT","https:\u002F\u002Fgithub.com\u002FLord1Egypt\u002Fawesome-skill-forge\u002Fblob\u002Fmaster\u002Fcommunity\u002Fskills_sh\u002Fs\u002Fskills-sh_vercel_ai_add-provider-package\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: add-provider-package\ndescription: Guide for adding new AI provider packages to the AI SDK. Use when creating a new @ai-sdk\u002F\u003Cprovider> package to integrate an AI service into the SDK.\nmetadata:\n  internal: true\n---\n\n## Adding a New Provider Package\n\nThis guide covers the process of creating a new `@ai-sdk\u002F\u003Cprovider>` package to integrate an AI service into the AI SDK.\n\n## First-Party vs Third-Party Providers\n\n- **Third-party packages**: Any provider can create a third-party package. We're happy to link to it from our documentation.\n- **First-party `@ai-sdk\u002F\u003Cprovider>` packages**: If you prefer a first-party package, please create an issue first to discuss.\n\n## Reference Example\n\nSee https:\u002F\u002Fgithub.com\u002Fvercel\u002Fai\u002Fpull\u002F8136\u002Ffiles for a complete example of adding a new provider.\n\n## Provider Architecture\n\nThe AI SDK uses a layered provider architecture following the adapter pattern:\n\n1. **Specifications** (`@ai-sdk\u002Fprovider`): Defines interfaces like `LanguageModelV4`, `EmbeddingModelV4`, etc.\n2. **Utilities** (`@ai-sdk\u002Fprovider-utils`): Shared code for implementing providers\n3. **Providers** (`@ai-sdk\u002F\u003Cprovider>`): Concrete implementations for each AI service\n4. **Core** (`ai`): High-level functions like `generateText`, `streamText`, `generateObject`\n\n## Step-by-Step Guide\n\n### 1. Create Package Structure\n\nCreate a new folder `packages\u002F\u003Cprovider>` with the following structure:\n\n```\npackages\u002F\u003Cprovider>\u002F\n├── src\u002F\n│   ├── index.ts                  # Main exports\n│   ├── version.ts                # Package version\n│   ├── \u003Cprovider>-provider.ts    # Provider implementation\n│   ├── \u003Cprovider>-provider.test.ts\n│   ├── \u003Cprovider>-*-options.ts   # Model-specific options\n│   └── \u003Cprovider>-*-model.ts     # Model implementations (e.g., language, embedding, image)\n├── package.json\n├── tsconfig.json\n├── tsconfig.build.json\n├── tsup.config.ts\n├── turbo.json\n├── vitest.node.config.js\n├── vitest.edge.config.js\n└── README.md\n```\n\nDo not create a `CHANGELOG.md` file. It will be auto-generated.\n\n### 2. Configure package.json\n\nSet up your `package.json` with:\n\n- `\"name\": \"@ai-sdk\u002F\u003Cprovider>\"`\n- `\"version\": \"0.0.0\"` (initial version, will be updated by changeset)\n- `\"license\": \"Apache-2.0\"`\n- `\"sideEffects\": false`\n- Dependencies on `@ai-sdk\u002Fprovider` and `@ai-sdk\u002Fprovider-utils` (use `workspace:*`)\n- Dev dependencies: `@ai-sdk\u002Ftest-server`, `@types\u002Fnode`, `@vercel\u002Fai-tsconfig`, `tsup`, `typescript`, `zod`\n- `\"engines\": { \"node\": \">=22\" }`\n- Peer dependency on `zod` (both v3 and v4): `\"zod\": \"^3.25.76 || ^4.1.8\"`\n\nExample exports configuration:\n\n```json\n{\n  \"exports\": {\n    \".\u002Fpackage.json\": \".\u002Fpackage.json\",\n    \".\": {\n      \"types\": \".\u002Fdist\u002Findex.d.ts\",\n      \"import\": \".\u002Fdist\u002Findex.mjs\",\n      \"require\": \".\u002Fdist\u002Findex.js\"\n    }\n  }\n}\n```\n\n### 3. Create TypeScript Configurations\n\n**tsconfig.json**:\n\n```json\n{\n  \"extends\": \"@vercel\u002Fai-tsconfig\u002Fbase.json\",\n  \"include\": [\"src\u002F**\u002F*.ts\"],\n  \"exclude\": [\"node_modules\", \"dist\"]\n}\n```\n\n**tsconfig.build.json**:\n\n```json\n{\n  \"extends\": \".\u002Ftsconfig.json\",\n  \"exclude\": [\n    \"**\u002F*.test.ts\",\n    \"**\u002F*.test-d.ts\",\n    \"**\u002F__snapshots__\",\n    \"**\u002F__fixtures__\"\n  ]\n}\n```\n\n### 4. Configure Build Tool (tsup)\n\nCreate `tsup.config.ts`:\n\n```typescript\nimport { defineConfig } from 'tsup';\n\nexport default defineConfig({\n  entry: ['src\u002Findex.ts'],\n  format: ['cjs', 'esm'],\n  dts: true,\n  sourcemap: true,\n  clean: true,\n});\n```\n\n### 5. Configure Test Runners\n\nCreate both `vitest.node.config.js` and `vitest.edge.config.js` (copy from existing provider like `anthropic`).\n\n### 6. Implement Provider\n\n**Provider implementation pattern**:\n\n```typescript\n\u002F\u002F \u003Cprovider>-provider.ts\nimport { NoSuchModelError } from '@ai-sdk\u002Fprovider';\nimport { loadApiKey } from '@ai-sdk\u002Fprovider-utils';\n\nexport interface ProviderSettings {\n  apiKey?: string;\n  baseURL?: string;\n  \u002F\u002F provider-specific settings\n}\n\nexport class ProviderInstance {\n  readonly apiKey?: string;\n  readonly baseURL?: string;\n\n  constructor(options: ProviderSettings = {}) {\n    this.apiKey = options.apiKey;\n    this.baseURL = options.baseURL;\n  }\n\n  private get baseConfig() {\n    return {\n      apiKey: () =>\n        loadApiKey({\n          apiKey: this.apiKey,\n          environmentVariableName: 'PROVIDER_API_KEY',\n          description: 'Provider API key',\n        }),\n      baseURL: this.baseURL ?? 'https:\u002F\u002Fapi.provider.com',\n    };\n  }\n\n  languageModel(modelId: string) {\n    return new ProviderLanguageModel(modelId, this.baseConfig);\n  }\n\n  \u002F\u002F Shorter alias\n  chat(modelId: string) {\n    return this.languageModel(modelId);\n  }\n}\n\n\u002F\u002F Export default instance\nexport const providerName = new ProviderInstance();\n```\n\n### 7. Implement Model Classes\n\nEach model type (language, embedding, image, etc.) should implement the appropriate interface from `@ai-sdk\u002Fprovider`:\n\n- `LanguageModelV4` for text generation models\n- `EmbeddingModelV4` for embedding models\n- `ImageModelV4` for image generation models\n- etc.\n\n**Schema guidelines**:\n\n**Provider Options** (user-facing):\n\n- Use `.optional()` unless `null` is meaningful\n- Be as restrictive as possible for future flexibility\n\n**Response Schemas** (API responses):\n\n- Use `.nullish()` instead of `.optional()`\n- Keep minimal - only include properties you need\n- Allow flexibility for provider API changes\n\n### 8. Create README.md\n\nInclude:\n\n- Brief description linking to documentation\n- Installation instructions\n- Basic usage example\n- Link to full documentation\n\n### 9. Write Tests\n\n- Unit tests for provider logic\n- API response parsing tests using fixtures in `__fixtures__` subdirectory\n- Both Node.js and Edge runtime tests\n\nSee `capture-api-response-test-fixture` skill for capturing real API responses for testing.\n\n### 10. Add Examples\n\nCreate examples in `examples\u002Fai-functions\u002Fsrc\u002F` for each model type the provider supports:\n\n- `generate-text\u002F\u003Cprovider>.ts` - Basic text generation\n- `stream-text\u002F\u003Cprovider>.ts` - Streaming text\n- `generate-object\u002F\u003Cprovider>.ts` - Structured output (if supported)\n- `stream-object\u002F\u003Cprovider>.ts` - Streaming structured output (if supported)\n- `embed\u002F\u003Cprovider>.ts` - Embeddings (if supported)\n- `generate-image\u002F\u003Cprovider>.ts` - Image generation (if supported)\n- etc.\n\nAdd feature-specific examples as needed (e.g., `\u003Cprovider>-tool-call.ts`, `\u003Cprovider>-cache-control.ts`).\n\n### 11. Add Documentation\n\nCreate documentation in `content\u002Fproviders\u002F01-ai-sdk-providers\u002F\u003Clast number + 10>-\u003Cprovider>.mdx`\n\nInclude:\n\n- Setup instructions\n- Available models\n- Model capabilities\n- Provider-specific options\n- Usage examples\n- API configuration\n\n### 12. Create Changeset\n\nRun `pnpm changeset` and:\n\n- Select the new provider package\n- Choose `major` version (for new packages starting at 0.0.0)\n- Describe what the package provides\n\n### 13. Update References\n\nRun `pnpm update-references` from the workspace root to update tsconfig references.\n\n### 14. Build and Test\n\n```bash\n# From workspace root\npnpm build\n\n# From provider package\ncd packages\u002F\u003Cprovider>\npnpm test              # Run all tests\npnpm test:node         # Run Node.js tests\npnpm test:edge         # Run Edge tests\npnpm type-check        # Type checking\n\n# From workspace root\npnpm type-check:full   # Full type check including examples\n```\n\n### 15. Run Examples\n\nTest your examples:\n\n```bash\ncd examples\u002Fai-functions\npnpm tsx src\u002Fgenerate-text\u002F\u003Cprovider>.ts\npnpm tsx src\u002Fstream-text\u002F\u003Cprovider>.ts\n```\n\n## Provider Method Naming\n\n- **Full names**: `languageModel(id)`, `imageModel(id)`, `embeddingModel(id)` (required)\n- **Short aliases**: `.chat(id)`, `.image(id)`, `.embedding(id)` (for DX)\n\n## File Naming Conventions\n\n- Source files: `kebab-case.ts`\n- Test files: `kebab-case.test.ts`\n- Type test files: `kebab-case.test-d.ts`\n- Provider classes: `\u003CProvider>Provider`, `\u003CProvider>LanguageModel`, etc.\n\n## Security Best Practices\n\n- Never use `JSON.parse` directly - use `parseJSON` or `safeParseJSON` from `@ai-sdk\u002Fprovider-utils`\n- Load API keys securely using `loadApiKey` from `@ai-sdk\u002Fprovider-utils`\n- Validate all API responses against schemas\n\n## Error Handling\n\nErrors should extend `AISDKError` from `@ai-sdk\u002Fprovider` and use a marker pattern:\n\n```typescript\nimport { AISDKError } from '@ai-sdk\u002Fprovider';\n\nconst name = 'AI_ProviderError';\nconst marker = `vercel.ai.error.${name}`;\nconst symbol = Symbol.for(marker);\n\nexport class ProviderError extends AISDKError {\n  private readonly [symbol] = true;\n\n  constructor({ message, cause }: { message: string; cause?: unknown }) {\n    super({ name, message, cause });\n  }\n\n  static isInstance(error: unknown): error is ProviderError {\n    return AISDKError.hasMarker(error, marker);\n  }\n}\n```\n\n## Pre-release Mode\n\nIf `main` is set up to publish `beta` releases, no further action is necessary. Just make sure not to backport it to the `vX.Y` stable branch since it will result in an npm version conflict once we exit pre-release mode on `main`.\n\n## Checklist\n\n- [ ] Package structure created in `packages\u002F\u003Cprovider>`\n- [ ] `package.json` configured with correct dependencies\n- [ ] TypeScript configs set up (`tsconfig.json`, `tsconfig.build.json`)\n- [ ] Build configuration (`tsup.config.ts`)\n- [ ] Test configurations (`vitest.node.config.js`, `vitest.edge.config.js`)\n- [ ] Provider implementation complete\n- [ ] Model classes implement appropriate interfaces\n- [ ] Unit tests written and passing\n- [ ] API response test fixtures captured\n- [ ] Examples created in `examples\u002Fai-functions\u002Fsrc\u002F`\n- [ ] Documentation added in `content\u002Fproviders\u002F01-ai-sdk-providers\u002F`\n- [ ] README.md written\n- [ ] Major changeset created\n- [ ] `pnpm update-references` run\n- [ ] All tests passing (`pnpm test` from package)\n- [ ] Type checking passing (`pnpm type-check:full` from root)\n- [ ] Examples run successfully\n\n## Common Issues\n\n- **Missing tsconfig references**: Run `pnpm update-references` from workspace root\n- **Type errors in examples**: Run `pnpm type-check:full` to catch issues early\n- **Test failures**: Ensure both Node and Edge tests pass\n- **Build errors**: Check that `tsup.config.ts` is configured correctly\n\n## Related Documentation\n\n- [Provider Architecture](..\u002F..\u002Fcontributing\u002Fprovider-architecture.md)\n- [Provider Development Notes](..\u002F..\u002Fcontributing\u002Fproviders.md)\n- [Develop AI Functions Example](..\u002Fdevelop-ai-functions-example\u002FSKILL.md)\n- [Capture API Response Test Fixture](..\u002Fcapture-api-response-test-fixture\u002FSKILL.md)\n","## Adding a New Provider Package\n\nThis guide covers the process of creating a new `@ai-sdk\u002F\u003Cprovider>` package to integrate an AI service into the AI SDK.\n\n## First-Party vs Third-Party Providers\n\n- **Third-party packages**: Any provider can create a third-party package. We're happy to link to it from our documentation.\n- **First-party `@ai-sdk\u002F\u003Cprovider>` packages**: If you prefer a first-party package, please create an issue first to discuss.\n\n## Reference Example\n\nSee https:\u002F\u002Fgithub.com\u002Fvercel\u002Fai\u002Fpull\u002F8136\u002Ffiles for a complete example of adding a new provider.\n\n## Provider Architecture\n\nThe AI SDK uses a layered provider architecture following the adapter pattern:\n\n1. **Specifications** (`@ai-sdk\u002Fprovider`): Defines interfaces like `LanguageModelV4`, `EmbeddingModelV4`, etc.\n2. **Utilities** (`@ai-sdk\u002Fprovider-utils`): Shared code for implementing providers\n3. **Providers** (`@ai-sdk\u002F\u003Cprovider>`): Concrete implementations for each AI service\n4. **Core** (`ai`): High-level functions like `generateText`, `streamText`, `generateObject`\n\n## Step-by-Step Guide\n\n### 1. Create Package Structure\n\nCreate a new folder `packages\u002F\u003Cprovider>` with the following structure:\n\n```\npackages\u002F\u003Cprovider>\u002F\n├── src\u002F\n│   ├── index.ts                  # Main exports\n│   ├── version.ts                # Package version\n│   ├── \u003Cprovider>-provider.ts    # Provider implementation\n│   ├── \u003Cprovider>-provider.test.ts\n│   ├── \u003Cprovider>-*-options.ts   # Model-specific options\n│   └── \u003Cprovider>-*-model.ts     # Model implementations (e.g., language, embedding, image)\n├── package.json\n├── tsconfig.json\n├── tsconfig.build.json\n├── tsup.config.ts\n├── turbo.json\n├── vitest.node.config.js\n├── vitest.edge.config.js\n└── README.md\n```\n\nDo not create a `CHANGELOG.md` file. It will be auto-generated.\n\n### 2. Configure package.json\n\nSet up your `package.json` with:\n\n- `\"name\": \"@ai-sdk\u002F\u003Cprovider>\"`\n- `\"version\": \"0.0.0\"` (initial version, will be updated by changeset)\n- `\"license\": \"Apache-2.0\"`\n- `\"sideEffects\": false`\n- Dependencies on `@ai-sdk\u002Fprovider` and `@ai-sdk\u002Fprovider-utils` (use `workspace:*`)\n- Dev dependencies: `@ai-sdk\u002Ftest-server`, `@types\u002Fnode`, `@vercel\u002Fai-tsconfig`, `tsup`, `typescript`, `zod`\n- `\"engines\": { \"node\": \">=22\" }`\n- Peer dependency on `zod` (both v3 and v4): `\"zod\": \"^3.25.76 || ^4.1.8\"`\n\nExample exports configuration:\n\n```json\n{\n  \"exports\": {\n    \".\u002Fpackage.json\": \".\u002Fpackage.json\",\n    \".\": {\n      \"types\": \".\u002Fdist\u002Findex.d.ts\",\n      \"import\": \".\u002Fdist\u002Findex.mjs\",\n      \"require\": \".\u002Fdist\u002Findex.js\"\n    }\n  }\n}\n```\n\n### 3. Create TypeScript Configurations\n\n**tsconfig.json**:\n\n```json\n{\n  \"extends\": \"@vercel\u002Fai-tsconfig\u002Fbase.json\",\n  \"include\": [\"src\u002F**\u002F*.ts\"],\n  \"exclude\": [\"node_modules\", \"dist\"]\n}\n```\n\n**tsconfig.build.json**:\n\n```json\n{\n  \"extends\": \".\u002Ftsconfig.json\",\n  \"exclude\": [\n    \"**\u002F*.test.ts\",\n    \"**\u002F*.test-d.ts\",\n    \"**\u002F__snapshots__\",\n    \"**\u002F__fixtures__\"\n  ]\n}\n```\n\n### 4. Configure Build Tool (tsup)\n\nCreate `tsup.config.ts`:\n\n```typescript\nimport { defineConfig } from 'tsup';\n\nexport default defineConfig({\n  entry: ['src\u002Findex.ts'],\n  format: ['cjs', 'esm'],\n  dts: true,\n  sourcemap: true,\n  clean: true,\n});\n```\n\n### 5. Configure Test Runners\n\nCreate both `vitest.node.config.js` and `vitest.edge.config.js` (copy from existing provider like `anthropic`).\n\n### 6. Implement Provider\n\n**Provider implementation pattern**:\n\n```typescript\n\u002F\u002F \u003Cprovider>-provider.ts\nimport { NoSuchModelError } from '@ai-sdk\u002Fprovider';\nimport { loadApiKey } from '@ai-sdk\u002Fprovider-utils';\n\nexport interface ProviderSettings {\n  apiKey?: string;\n  baseURL?: string;\n  \u002F\u002F provider-specific settings\n}\n\nexport class ProviderInstance {\n  readonly apiKey?: string;\n  readonly baseURL?: string;\n\n  constructor(options: ProviderSettings = {}) {\n    this.apiKey = options.apiKey;\n    this.baseURL = options.baseURL;\n  }\n\n  private get baseConfig() {\n    return {\n      apiKey: () =>\n        loadApiKey({\n          apiKey: this.apiKey,\n          environmentVariableName: 'PROVIDER_API_KEY',\n          description: 'Provider API key',\n        }),\n      baseURL: this.baseURL ?? 'https:\u002F\u002Fapi.provider.com',\n    };\n  }\n\n  languageModel(modelId: string) {\n    return new ProviderLanguageModel(modelId, this.baseConfig);\n  }\n\n  \u002F\u002F Shorter alias\n  chat(modelId: string) {\n    return this.languageModel(modelId);\n  }\n}\n\n\u002F\u002F Export default instance\nexport const providerName = new ProviderInstance();\n```\n\n### 7. Implement Model Classes\n\nEach model type (language, embedding, image, etc.) should implement the appropriate interface from `@ai-sdk\u002Fprovider`:\n\n- `LanguageModelV4` for text generation models\n- `EmbeddingModelV4` for embedding models\n- `ImageModelV4` for image generation models\n- etc.\n\n**Schema guidelines**:\n\n**Provider Options** (user-facing):\n\n- Use `.optional()` unless `null` is meaningful\n- Be as restrictive as possible for future flexibility\n\n**Response Schemas** (API responses):\n\n- Use `.nullish()` instead of `.optional()`\n- Keep minimal - only include properties you need\n- Allow flexibility for provider API changes\n\n### 8. Create README.md\n\nInclude:\n\n- Brief description linking to documentation\n- Installation instructions\n- Basic usage example\n- Link to full documentation\n\n### 9. Write Tests\n\n- Unit tests for provider logic\n- API response parsing tests using fixtures in `__fixtures__` subdirectory\n- Both Node.js and Edge runtime tests\n\nSee `capture-api-response-test-fixture` skill for capturing real API responses for testing.\n\n### 10. Add Examples\n\nCreate examples in `examples\u002Fai-functions\u002Fsrc\u002F` for each model type the provider supports:\n\n- `generate-text\u002F\u003Cprovider>.ts` - Basic text generation\n- `stream-text\u002F\u003Cprovider>.ts` - Streaming text\n- `generate-object\u002F\u003Cprovider>.ts` - Structured output (if supported)\n- `stream-object\u002F\u003Cprovider>.ts` - Streaming structured output (if supported)\n- `embed\u002F\u003Cprovider>.ts` - Embeddings (if supported)\n- `generate-image\u002F\u003Cprovider>.ts` - Image generation (if supported)\n- etc.\n\nAdd feature-specific examples as needed (e.g., `\u003Cprovider>-tool-call.ts`, `\u003Cprovider>-cache-control.ts`).\n\n### 11. Add Documentation\n\nCreate documentation in `content\u002Fproviders\u002F01-ai-sdk-providers\u002F\u003Clast number + 10>-\u003Cprovider>.mdx`\n\nInclude:\n\n- Setup instructions\n- Available models\n- Model capabilities\n- Provider-specific options\n- Usage examples\n- API configuration\n\n### 12. Create Changeset\n\nRun `pnpm changeset` and:\n\n- Select the new provider package\n- Choose `major` version (for new packages starting at 0.0.0)\n- Describe what the package provides\n\n### 13. Update References\n\nRun `pnpm update-references` from the workspace root to update tsconfig references.\n\n### 14. Build and Test\n\n```bash\n# From workspace root\npnpm build\n\n# From provider package\ncd packages\u002F\u003Cprovider>\npnpm test              # Run all tests\npnpm test:node         # Run Node.js tests\npnpm test:edge         # Run Edge tests\npnpm type-check        # Type checking\n\n# From workspace root\npnpm type-check:full   # Full type check including examples\n```\n\n### 15. Run Examples\n\nTest your examples:\n\n```bash\ncd examples\u002Fai-functions\npnpm tsx src\u002Fgenerate-text\u002F\u003Cprovider>.ts\npnpm tsx src\u002Fstream-text\u002F\u003Cprovider>.ts\n```\n\n## Provider Method Naming\n\n- **Full names**: `languageModel(id)`, `imageModel(id)`, `embeddingModel(id)` (required)\n- **Short aliases**: `.chat(id)`, `.image(id)`, `.embedding(id)` (for DX)\n\n## File Naming Conventions\n\n- Source files: `kebab-case.ts`\n- Test files: `kebab-case.test.ts`\n- Type test files: `kebab-case.test-d.ts`\n- Provider classes: `\u003CProvider>Provider`, `\u003CProvider>LanguageModel`, etc.\n\n## Security Best Practices\n\n- Never use `JSON.parse` directly - use `parseJSON` or `safeParseJSON` from `@ai-sdk\u002Fprovider-utils`\n- Load API keys securely using `loadApiKey` from `@ai-sdk\u002Fprovider-utils`\n- Validate all API responses against schemas\n\n## Error Handling\n\nErrors should extend `AISDKError` from `@ai-sdk\u002Fprovider` and use a marker pattern:\n\n```typescript\nimport { AISDKError } from '@ai-sdk\u002Fprovider';\n\nconst name = 'AI_ProviderError';\nconst marker = `vercel.ai.error.${name}`;\nconst symbol = Symbol.for(marker);\n\nexport class ProviderError extends AISDKError {\n  private readonly [symbol] = true;\n\n  constructor({ message, cause }: { message: string; cause?: unknown }) {\n    super({ name, message, cause });\n  }\n\n  static isInstance(error: unknown): error is ProviderError {\n    return AISDKError.hasMarker(error, marker);\n  }\n}\n```\n\n## Pre-release Mode\n\nIf `main` is set up to publish `beta` releases, no further action is necessary. Just make sure not to backport it to the `vX.Y` stable branch since it will result in an npm version conflict once we exit pre-release mode on `main`.\n\n## Checklist\n\n- [ ] Package structure created in `packages\u002F\u003Cprovider>`\n- [ ] `package.json` configured with correct dependencies\n- [ ] TypeScript configs set up (`tsconfig.json`, `tsconfig.build.json`)\n- [ ] Build configuration (`tsup.config.ts`)\n- [ ] Test configurations (`vitest.node.config.js`, `vitest.edge.config.js`)\n- [ ] Provider implementation complete\n- [ ] Model classes implement appropriate interfaces\n- [ ] Unit tests written and passing\n- [ ] API response test fixtures captured\n- [ ] Examples created in `examples\u002Fai-functions\u002Fsrc\u002F`\n- [ ] Documentation added in `content\u002Fproviders\u002F01-ai-sdk-providers\u002F`\n- [ ] README.md written\n- [ ] Major changeset created\n- [ ] `pnpm update-references` run\n- [ ] All tests passing (`pnpm test` from package)\n- [ ] Type checking passing (`pnpm type-check:full` from root)\n- [ ] Examples run successfully\n\n## Common Issues\n\n- **Missing tsconfig references**: Run `pnpm update-references` from workspace root\n- **Type errors in examples**: Run `pnpm type-check:full` to catch issues early\n- **Test failures**: Ensure both Node and Edge tests pass\n- **Build errors**: Check that `tsup.config.ts` is configured correctly\n\n## Related Documentation\n\n- [Provider Architecture](..\u002F..\u002Fcontributing\u002Fprovider-architecture.md)\n- [Provider Development Notes](..\u002F..\u002Fcontributing\u002Fproviders.md)\n- [Develop AI Functions Example](..\u002Fdevelop-ai-functions-example\u002FSKILL.md)\n- [Capture API Response Test Fixture](..\u002Fcapture-api-response-test-fixture\u002FSKILL.md)\n",{"name":5,"metadata":24,"description":7},{"internal":25},true,"master","4aa004da461d820f4ea5499e58eb8d196cf99016","community\u002Fskills_sh\u002Fs\u002Fskills-sh_vercel_ai_add-provider-package",0,"https:\u002F\u002Fgithub.com\u002FLord1Egypt\u002Fawesome-skill-forge","https:\u002F\u002Fskill-explorer-rho.vercel.app","https:\u002F\u002Fgithub.com\u002FLord1Egypt","Unbreakable. Unstoppable. Unmatched⚡.\r\n Speaker of machine tongues 🤖  | World-builder of decentralized dreams 🌐 | Defender of the digital realm🛡️.","2026-06-10 08:21:01",{"source":8,"skillName":5,"commands":36,"prompt":46,"zipAvailable":25},[37,40,43],{"tool":38,"command":39},"npx","npx skills add Lord1Egypt\u002Fawesome-skill-forge --skill add-provider-package",{"tool":41,"command":42},"bunx","bunx skills add Lord1Egypt\u002Fawesome-skill-forge --skill add-provider-package",{"tool":44,"command":45},"pnpm","pnpm dlx skills add Lord1Egypt\u002Fawesome-skill-forge --skill add-provider-package","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FLord1Egypt\u002Fawesome-skill-forge\u002Fblob\u002Fmaster\u002Fcommunity\u002Fskills_sh\u002Fs\u002Fskills-sh_vercel_ai_add-provider-package\u002FSKILL.md",[],[49,56,63,70,77,84],{"skillNo":50,"name":51,"nameZh":6,"description":52,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":53,"categories":54,"keywords":55,"publishedAt":19},"01M785WKJB99G3STR1NF9NRTJW","youtube-content","YouTube transcripts to summaries, threads, blogs.","https:\u002F\u002Fgithub.com\u002FLord1Egypt\u002Fawesome-skill-forge\u002Fblob\u002Fmaster\u002Fskills\u002Fyoutube-content\u002FSKILL.md",[],[],{"skillNo":57,"name":58,"nameZh":6,"description":59,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":60,"categories":61,"keywords":62,"publishedAt":19},"01M785WEFHB0G2S9YA6EPR3H0E","xurl","X\u002FTwitter via xurl CLI: post, search, DM, media, v2 API.","https:\u002F\u002Fgithub.com\u002FLord1Egypt\u002Fawesome-skill-forge\u002Fblob\u002Fmaster\u002Fskills\u002Fxurl\u002FSKILL.md",[],[],{"skillNo":64,"name":65,"nameZh":6,"description":66,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":67,"categories":68,"keywords":69,"publishedAt":19},"01M785W98EDN4EFJXJPMQEHCRC","touchdesigner-mcp","Control a running TouchDesigner instance via twozero MCP — create operators, set parameters, wire connections, execute Python, build real-time visuals. 36 native tools.","https:\u002F\u002Fgithub.com\u002FLord1Egypt\u002Fawesome-skill-forge\u002Fblob\u002Fmaster\u002Fskills\u002Ftouchdesigner-mcp\u002FSKILL.md",[],[],{"skillNo":71,"name":72,"nameZh":6,"description":73,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":74,"categories":75,"keywords":76,"publishedAt":19},"01M785W5S9FP3QBH2V191E025P","test-driven-development","TDD: enforce RED-GREEN-REFACTOR, tests before code.","https:\u002F\u002Fgithub.com\u002FLord1Egypt\u002Fawesome-skill-forge\u002Fblob\u002Fmaster\u002Fskills\u002Ftest-driven-development\u002FSKILL.md",[],[],{"skillNo":78,"name":79,"nameZh":6,"description":80,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":81,"categories":82,"keywords":83,"publishedAt":19},"01M785W2AS08NSSH9YATCV6FJB","teams-meeting-pipeline","Operate the Teams meeting summary pipeline via Hermes CLI — summarize meetings, inspect pipeline status, replay jobs, manage Microsoft Graph subscriptions.","https:\u002F\u002Fgithub.com\u002FLord1Egypt\u002Fawesome-skill-forge\u002Fblob\u002Fmaster\u002Fskills\u002Fteams-meeting-pipeline\u002FSKILL.md",[],[],{"skillNo":85,"name":86,"nameZh":6,"description":87,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":88,"categories":89,"keywords":90,"publishedAt":19},"01M785VXKW4T34BTP1SCHW1R7F","systematic-debugging","4-phase root cause debugging: understand bugs before fixing.","https:\u002F\u002Fgithub.com\u002FLord1Egypt\u002Fawesome-skill-forge\u002Fblob\u002Fmaster\u002Fskills\u002Fsystematic-debugging\u002FSKILL.md",[],[]]