Dspy.LM.OpenAI (dspy v0.1.0)

View Source

OpenAI language model client.

Integrates with OpenAI's Chat Completions API to provide language model capabilities for DSPy.

Summary

Functions

Create a new OpenAI client.

Types

t()

@type t() :: %Dspy.LM.OpenAI{
  api_key: String.t(),
  base_url: String.t(),
  model: String.t(),
  organization: String.t() | nil,
  timeout: pos_integer()
}

Functions

new(opts \\ [])

Create a new OpenAI client.