struct

Crig::Providers::Gemini::Client

Inherits Crig::Client::TranscriptionClient < Crig::Client::EmbeddingsClient < Crig::Client::CompletionClient < Struct < Value < Object

Constructors

from_env
Source
from_val(input : GeminiApiKey) : self
Source
new(api_key : String, base_url : String = GEMINI_API_BASE_URL)
Source

Class methods

builder
Source

Instance methods

base_url
Source
build_uri(path : String, sse : Bool = false) : String
Source
embedding_model_with_ndims(model : String, ndims : Int32) : Crig::Providers::Gemini::EmbeddingModel
Source
get(path : String, sse : Bool = false) : HTTP::Client::Response
Source
interactions_api
Source
post_json(path : String, body : String, sse : Bool = false) : HTTP::Client::Response
Source