OpenRouterTeam / ai-sdk-provider

The OpenRouter provider for the Vercel AI SDK contains support for hundreds of AI models through the OpenRouter chat and completion APIs.
https://www.npmjs.com/package/@openrouter/ai-sdk-provider
44 stars 9 forks source link

Dep error: zog not found #1

Closed foomprep closed 3 months ago

foomprep commented 3 months ago
✘ [ERROR] Could not resolve "zod"

    node_modules/@openrouter/ai-sdk-provider/dist/index.mjs:49:24:
      49 │ import { z as z2 } from "zod";
         ╵                         ~~~~~

  You can mark the path "zod" as external to exclude it from the bundle, which will remove this
  error and leave the unresolved path in the bundle.

Looks like zod is listed as a peer dependency in the package.json . Installing zod externally solved my problem, but maybe zod should be moved to main dependencies in package.json?