Skip to content

About

OpenAPI specification for the OpenAI API

Resources

Stars

0 stars

Watchers

0 watching

Forks

 
 

Latest commit

 

History

16 Commits

Folders and files

Repository files navigation

OpenAPI spec for the OpenAI API

This repository contains an OpenAPI specification for the OpenAI API, as well as a script that uses OpenAPI Generator to auto-generate client SDKs from the specification.

OpenAPI Generator uses mustache templates to generate code — the files in the sdk-template-overrides folder override the corresponding built-in template files with small edits required for the OpenAI SDKs. More detail on each currently generated SDK is provided below.

Node.js

Example command to generate the SDK

$ python scripts/generate_sdk.py -s node -o ~/openai-node

Node.js specific details

  • The operationId of each operation is used as the function name for that operation
  • The tag determines the name of the Javascript class that contains that operation
  • schema names map to Typescript type names

About

OpenAPI specification for the OpenAI API

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages