class LLM::Ollama

Defined in:

llm/ollama/ollama.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(url : String, model : String) #

[View source]

Instance Method Detail

def query(code : String) #

[View source]
def request(prompt : String, format : String = "json") #

[View source]
def request_with_context(system : String | Nil, user : String, format : String = "json", cache_key : String | Nil = nil) #

[View source]