struct AI::Google::LanguageModelConfig

Overview

Configuration for the Google language model.

Defined in:

ai/google/google_generative_ai_language_model.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(provider : String, base_url : String, headers : Proc(Hash(String, String)) | Nil = nil, generate_id : Proc(String) = -> do AI::ProviderUtils.generate_id end, supported_urls : Proc(Hash(String, Array(Regex))) | Nil = nil) #

[View source]

Instance Method Detail

def base_url : String #

[View source]
def generate_id : Proc(String) #

[View source]
def headers : Proc(Hash(String, String)) | Nil #

[View source]
def provider : String #

[View source]
def supported_urls : Proc(Hash(String, Array(Regex))) | Nil #

[View source]