View Source Train.Clients.OpenAIConfig (train v0.0.1-dev)

Link to this section Summary

Link to this section Types

@type model() :: :"gpt-4" | :"gpt-3.5-turbo"
@type t() :: %Train.Clients.OpenAIConfig{
  api_url: String.t(),
  log_level: atom(),
  model: String.t(),
  retries: integer(),
  temperature: float()
}

Link to this section Functions

@spec api_url() :: String.t()
@spec get_max_tokens(model()) :: integer()