struct

Crig::Providers::OpenRouter::ClientBuilder

Inherits Struct < Value < Object

Constructors

new(api_key : String | Nil = nil, base_url : String = OPENROUTER_API_BASE_URL, app_title : String | Nil = nil, app_url : String | Nil = nil, app_categories : Array(String) | Nil = nil)
Source

Instance methods

api_key(api_key : String) : self
Source
api_key
Source
app_categories
Source
app_title
Source
app_url
Source
base_url(base_url : String) : self
Source
base_url
Source
build
Source
with_app_categories(categories : Array(String)) : self
Source
with_app_identity(title : String, url : String) : self
Source