@open-schemas/zod
TypeScript icon, indicating that this package has built-in type declarations

2.2.1 • Public • Published

@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({});

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
2.2.13latest

Version History

VersionDownloads (Last 7 Days)Published
2.2.13
2.2.00
2.1.30
2.1.20
2.1.10
2.1.00
2.0.20
2.0.10
2.0.00

Package Sidebar

Install

npm i @open-schemas/zod

Weekly Downloads

3

Version

2.2.1

License

MIT

Unpacked Size

465 kB

Total Files

37

Last publish

Collaborators

  • jack0pan