@open-schemas/zod@2.0.0Built and signed on GitHub ActionsBuilt and signed on GitHub Actions
Built and signed on GitHub Actions
latest
open-assist/open_schemasZod schemas for the API of LLM providers.
This package works with Cloudflare Workers, Node.js, Deno, Bun, Browsers




JSR Score
47%
Published
a year ago (2.0.0)
@open-schemas/zod
Zod schemas for the API of LLM providers:
- Anthropic
- Ollama
- OpenAI
- Vertex AI
Installtion
From npm
deno add npm:@open-schemas/zod
npm add @open-schemas/zod
yarn add @open-schemas/zod
pnpm add @open-schemas/zod
bun add @open-schemas/zod
From JSR
deno add @open-schemas/zod
npx jsr add @open-schemas/zod
yarn dlx jsr add @open-schemas/zod
pnpm dlx jsr add @open-schemas/zod
bunx jsr add @open-schemas/zod
Usage
Anthropic
import { CreateMessageRequest } from "@open-schemas/zod/anthropic"; CreateMessageRequest.parse({});
OpenAI
import { CreateChatCompletionRequest } from "@open-schemas/zod/openai"; CreateChatCompletionRequest.parse({});
Built and signed on
GitHub Actions