struct

AI::OpenAI::ProviderSettings

Inherits Struct < Value < Object

Provider settings.

Constructors

new(base_url : String | Nil = nil, api_key : String | Nil = nil, organization : String | Nil = nil, project : String | Nil = nil, headers : Hash(String, String) | Nil = nil, name : String | Nil = nil)
Source

Instance methods

api_key

API key (defaults to OPENAI_API_KEY env var).

Source
base_url

Base URL for API calls.

Source
headers

Custom headers.

Source
name

Custom provider name.

Source
organization

OpenAI Organization.

Source
project

OpenAI Project.

Source