AI.Providers.OpenAI.ChatLanguageModel (AI SDK v0.0.1-rc.0)

View Source

Implementation of the OpenAI chat language model.

Summary

Types

t()

@type t() :: %AI.Providers.OpenAI.ChatLanguageModel{
  config: map(),
  model_id: String.t(),
  settings: map()
}

Functions

handle_stream_response(response, body, warnings, settings)

new(model_id, settings, config)

Creates a new OpenAI chat language model instance.