Crate openai Copy item path Source 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. Credentials Holds the API key and base URL for an OpenAI-compatible API. OpenAiError RequestPagination Pagination options for API requests fetching lists of items. Usage ApiResponse RequestOrder Order of items in a list. DEFAULT_BASE_URL set_base_url Deprecated Sets the base url for all OpenAI API functions. set_key Deprecated Sets the key for all OpenAI API functions. ApiResponseOrError