@himenon/openai-typescript-openapi
v1.1.0
Published
Implementation of TypeScript generated from openai OpenAPI
Downloads
1
Readme
@himenon/openai-typescript-openapi
npm i @himenon/openai-typescript-openapi
# or
pnpm i @himenon/openai-typescript-openapi
# or
yarn add @himenon/openai-typescript-openapi
Usage
import * as fs from "node:fs";
import { Client } from "@himenon/openai-typescript-openapi/dist/2.0.0";
const client = new Client(
{
request: {}, // your impl
},
"your/endpoint"
);
client.listModels();
Build
pnpm build
OpenAPI Source for openai
OpenAPI TypeScript Code Generator
You can also just use the type definition
Use Another Version
Edit config.ts