OpenAI.CreateChatCompletionRequest (oapi_oai v0.1.0)

Provides struct and type for CreateChatCompletionRequest

Link to this section Summary

Link to this section Types

@type t() :: %OpenAI.CreateChatCompletionRequest{
  frequency_penalty: number() | nil,
  logit_bias: map() | nil,
  max_tokens: integer() | nil,
  messages: [OpenAI.ChatCompletionRequestMessage.t()],
  model: String.t(),
  n: integer() | nil,
  presence_penalty: number() | nil,
  stop: (String.t() | [String.t()]) | nil,
  stream: boolean() | nil,
  temperature: number() | nil,
  top_p: number() | nil,
  user: String.t() | nil
}