Skip to main content
Home

Built and signed on GitHub Actions

Type definitions for the API of LLM providers.

This package works with Cloudflare Workers, Node.js, Deno, Bun, Browsers
This package works with Cloudflare Workers
This package works with Node.js
This package works with Deno
This package works with Bun
This package works with Browsers
JSR Score
100%
Published
a year ago (2.0.0)

@open-schemas/types

Typescript types for the API of LLM providers:

  • Anthropic
  • Ollama
  • OpenAI
  • Vertex AI

Installtion

From npm

deno add npm:@open-schemas/types
npm add @open-schemas/types
yarn add @open-schemas/types
pnpm add @open-schemas/types
bun add @open-schemas/types

From JSR

deno add @open-schemas/types
npx jsr add @open-schemas/types
yarn dlx jsr add @open-schemas/types
pnpm dlx jsr add @open-schemas/types
bunx jsr add @open-schemas/types

Usage

Anthropic

import { CreateMessageRequest } from "@open-schemas/types/anthropic";

const request: CreateMessageRequest = {};

OpenAI

import { CreateChatCompletionRequest } from "@open-schemas/types/openai";

const request: CreateChatCompletionRequest = {};
Built and signed on
GitHub Actions

New Ticket: Report package

Please provide a reason for reporting this package. We will review your report and take appropriate action.

Please review the JSR usage policy before submitting a report.