struct Google::GenerativeAI::Files

Defined in:

gemini.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(client : Google::GenerativeAI::Client, http : HTTP::Client = client.http, api_key : String = client.api_key) #

[View source]

Instance Method Detail

def api_key : String #

[View source]
def client : Client #

[View source]
def http : HTTP::Client #

[View source]
def upload(file : Path, content_type : String) #

[View source]