Skip to content

Latest commit

 

History

History
29 lines (17 loc) · 748 Bytes

README.md

File metadata and controls

29 lines (17 loc) · 748 Bytes

APIs for sampling from and fine-tuning language models

This OCaml package is automatically generated by the OpenAPI Generator project:

  • API version: 1.2.0
  • Package version: 1.0.0
  • Build package: org.openapitools.codegen.languages.OCamlClientCodegen

Requirements.

OCaml >4

Installation

Please run the following commands to build the package openapi:

I haven't bothered to put this in the public OPAM repo just yet since I'm not sure if it's ready for prime time.

opam pin add openai .

Getting Started

Your openai API key should go in the OPENAI_API_KEY environment variable.

Please see the example for basic usage of the chat completion API. Other API's are not dissimilar.