struct

Crig::Providers::Ollama::Client

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

Constructors

from_env
Source
from_val(input : Crig::Nothing) : self
Source
new(api_key : Crig::Nothing = Crig::Nothing.new, base_url : String = OLLAMA_API_BASE_URL)
Source

Class methods

builder
Source

Instance methods

api_key
Source
base_url
Source
build_uri(path : String) : String
Source
completion_model(model : String) : CompletionModel
Source
embedding_model(model : String, ndims : Int32 | Nil = nil) : EmbeddingModel
Source
embedding_model_with_ndims(model : String, ndims : Int32) : EmbeddingModel
Source
post_json(path : String, body : String) : HTTP::Client::Response
Source