View Source ExOpenAI.Components.CreateCompletionRequest (ex_openai.ex v1.5.1)

Schema representing a CreateCompletionRequest within the OpenAI API

Summary

Types

@type t() :: %ExOpenAI.Components.CreateCompletionRequest{
  best_of: integer() | nil,
  echo: boolean() | nil,
  frequency_penalty: float() | nil,
  logit_bias: map() | nil,
  logprobs: integer() | nil,
  max_tokens: integer() | nil,
  model:
    (:"text-ada-001"
     | :"text-babbage-001"
     | :"text-curie-001"
     | :"code-davinci-002"
     | :"text-davinci-001"
     | :"text-davinci-002"
     | :"text-davinci-003"
     | :"gpt-3.5-turbo-instruct"
     | :"davinci-002"
     | :"babbage-002")
    | String.t(),
  n: integer() | nil,
  presence_penalty: float() | nil,
  prompt: [[integer()]] | [integer()] | [String.t()] | String.t(),
  seed: integer() | nil,
  stop: ([String.t()] | String.t()) | nil,
  stream: boolean() | nil,
  suffix: String.t() | nil,
  temperature: float() | nil,
  top_p: float() | nil,
  user: String.t() | nil
}