Skip to main content
This release is 11 versions behind 2.0.0 — the latest version of @open-schemas/valibot. Jump to latest

Valibot schemas for the API of LLM providers.

Works with
This package works with Bun
This package works with Cloudflare Workers
This package works with Node.js
This package works with Deno
This package works with Browsers
JSR Score
47%
Published
a week ago
indexopenai
deno add @open-schemas/valibot
import * as mod from "@open-schemas/valibot/openai";
npx jsr add @open-schemas/valibot
import * as mod from "@open-schemas/valibot/openai";
yarn dlx jsr add @open-schemas/valibot
import * as mod from "@open-schemas/valibot/openai";
pnpm dlx jsr add @open-schemas/valibot
import * as mod from "@open-schemas/valibot/openai";
bunx jsr add @open-schemas/valibot
import * as mod from "@open-schemas/valibot/openai";

This module contains valibot schemas for OpenAI API.

Examples

Example 1

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

parse(CreateChatCompletionRequest, {});

Type Aliases

T
v
No documentation available
T
v
AssistantObject
from openai
No documentation available
T
v
No documentation available
No documentation available
No documentation available
No documentation available
T
v
No documentation available
No documentation available
T
v
No documentation available
No documentation available
No documentation available
No documentation available
No documentation available
No documentation available
No documentation available
No documentation available
No documentation available
T
v
ChatCompletionTool
from openai
No documentation available
T
v
No documentation available
No documentation available
T
v
No documentation available
T
v
No documentation available
T
v
No documentation available
T
v
No documentation available
No documentation available
T
v
No documentation available
No documentation available
T
v
No documentation available
T
v
CreateRunRequest
from openai
No documentation available
No documentation available
T
v
No documentation available
T
v
No documentation available
T
v
FilePathAnnotation
from openai
No documentation available
T
v
FinishReason
from openai
No documentation available
T
v
FunctionTool
from openai
No documentation available
T
v
FunctionToolCall
from openai
No documentation available
T
v
No documentation available
T
v
MessageFileObject
from openai
No documentation available
T
v
No documentation available
T
v
MessageObject
from openai
No documentation available
T
v
MessageTextContent
from openai
No documentation available
T
v
Metadata
from openai
No documentation available
T
v
No documentation available
T
v
No documentation available
T
v
ModifyRunRequest
from openai
No documentation available
T
v
No documentation available
T
v
ObjectMeta
from openai
No documentation available
T
v
RetrievalTool
from openai
No documentation available
T
v
RetrievalToolCall
from openai
No documentation available
T
v
RunObject
from openai
No documentation available
T
v
StepObject
from openai
No documentation available
T
v
No documentation available
No documentation available
T
v
ThreadObject
from openai
No documentation available
T
v
Tool
from openai
No documentation available
T
v
ToolCall
from openai
No documentation available
T
v
ToolCallsDetail
from openai
No documentation available
T
v
ToolOutput
from openai
No documentation available
T
v
Usage
from openai
No documentation available