Crate openai_fork

Source

Modules§

chat
Given a chat conversation, the model will return a chat completion response.
completions
Given a prompt, the model will return one or more predicted completions, and can also return the probabilities of alternative tokens at each position.
edits
Given a prompt and an instruction, the model will return an edited version of the prompt.
embeddings
Get a vector representation of a given input that can be easily consumed by machine learning models and algorithms.
files
Upload, download, list, and delete files in openapi platform. Usually used for fine-tuning files.
models
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.
moderations
Given a input text, outputs if the model classifies it as violating OpenAI’s content policy.

Structs§

OpenAiError
Usage

Enums§

ApiResponse

Functions§

set_base_url
Sets the base url for all OpenAI API functions.
set_key
Sets the key for all OpenAI API functions.

Type Aliases§

ApiResponseOrError