Creates a model response for the given chat conversation. Note that this is defined
already in OpenAIChatCompletionService, but it is repeated here for clarity.
Creates a model response for the given chat conversation. Note that this is defined
already in OpenAIChatCompletionService, but it is repeated here for clarity.
Attributes
messages
A list of messages comprising the conversation so far.
Creates a completion for the provided prompt and parameters. Note that this is defined *
already in OpenAICompletionService, but it is repeated here for clarity.
Creates a completion for the provided prompt and parameters. Note that this is defined *
already in OpenAICompletionService, but it is repeated here for clarity.
Attributes
prompt
The prompt(s) to generate completions for, encoded as a string, array of strings, array
of tokens, or array of token arrays. Note that <|endoftext|> is the document separator
that the model sees during training, so if a prompt is not specified the model will
generate as if from the beginning of a new document.
Creates an embedding vector representing the input text.
Creates an embedding vector representing the input text.
Attributes
input
Input text to get embeddings for, encoded as a string or array of tokens. To get
embeddings for multiple inputs in a single request, pass an array of strings or array of
token arrays. Each input must not exceed 8192 tokens in length.