class Google::GenerativeAI::Client

Defined in:

gemini.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(api_key : String, base_uri : URI = DEFAULT_URI) #

[View source]

Instance Method Detail

def get(path : String, headers : HTTP::Headers | Nil = nil, *, retries : Int = 5, return type : T.class) forall T #

[View source]
def get(path : String, headers : HTTP::Headers | Nil = nil, *, body, retries : Int = 3, return type : T.class) forall T #

[View source]
def model(name : String, system_instruction = nil, temperature : Float64 | Nil = nil, response_schema = nil) #

[View source]
def models(page_size : Int | Nil = nil, page_token : String | Nil = nil, response_schema = nil) #

[View source]
def post(path : String, headers : HTTP::Headers | Nil = nil, *, retries : Int = 5, return type : T.class) forall T #

[View source]
def post(path : String, headers : HTTP::Headers | Nil = nil, *, body, retries : Int = 3, return type : T.class) forall T #

[View source]