struct

Crig::Client::DynClientBuilder

Inherits Struct < Value < Object

Constructors

new(factories : Hash(String, ProviderFactory) = self.class.default_factories)
Source

Class methods

default_factories
Source
to_key(provider_name : String, model : String) : String
Source

Instance methods

audio_generation(provider_name : String, model : String) : Crig::AudioGenerationModelDyn
Source
completion(provider_name : String, model : String) : Crig::Completion::CompletionModelDyn
Source
embeddings(provider_name : String, model : String) : Crig::EmbeddingModelDyn
Source
factories
Source
factory(provider_name : String, model : String) : ProviderFactory | Nil
Source
from_env(provider_name : String, model : String) : AnyClient
Source
image_generation(provider_name : String, model : String) : Crig::ImageGenerationModelDyn
Source
register(provider_name : String, model : String, &from_env : -> AnyClient) : self
Source
transcription(provider_name : String, model : String) : Crig::TranscriptionModelDyn
Source