1.1.0 • Published 11 months ago

@himenon/openai-typescript-openapi v1.1.0

Weekly downloads
-
License
MIT
Repository
github
Last release
11 months ago

@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

LICENCE

@Himenon/openai-typescript-openapi・MIT

1.1.0

11 months ago