Ollama | Models

Manage and query locally available Ollama models.

List Models

Lists all available models.


Ollama := TsgcHTTP_API_Ollama.Create(nil);
Ollama.OllamaOptions.Host := 'http://localhost:11434';
WriteLn(Ollama._GetModels);

Get Tags

Lists all locally available model tags.


Ollama := TsgcHTTP_API_Ollama.Create(nil);
Ollama.OllamaOptions.Host := 'http://localhost:11434';
WriteLn(Ollama._GetTags);

Show Model

Retrieves detailed information about a specific model.


Ollama := TsgcHTTP_API_Ollama.Create(nil);
Ollama.OllamaOptions.Host := 'http://localhost:11434';
WriteLn(Ollama._ShowModel('llama3'));

Pull Model

Downloads a model from the Ollama model library.


Ollama := TsgcHTTP_API_Ollama.Create(nil);
Ollama.OllamaOptions.Host := 'http://localhost:11434';
WriteLn(Ollama._PullModel('llama3'));