Crate openai

source ·

Modules§

  • Given a chat conversation, the model will return a chat completion response.
  • Given a prompt, the model will return one or more predicted completions, and can also return the probabilities of alternative tokens at each position.
  • Given a prompt and an instruction, the model will return an edited version of the prompt.
  • Get a vector representation of a given input that can be easily consumed by machine learning models and algorithms.
  • Upload, download, list, and delete files in openapi platform. Usually used for fine-tuning files.
  • List and describe the various models available in the API. You can refer to the Models documentation to understand what models are available and the differences between them.
  • Given a input text, outputs if the model classifies it as violating OpenAI’s content policy.

Structs§

Enums§

Functions§

  • Sets the base url for all OpenAI API functions.
  • Sets the key for all OpenAI API functions.

Type Aliases§