NAME
Langertha::Engine::Ollama - Ollama API
VERSION
version 0.006
SYNOPSIS
use Langertha::Engine::Ollama;
my $ollama = Langertha::Engine::Ollama->new(
url => $ENV{OLLAMA_URL},
model => 'llama3.1',
system_prompt => 'You are a helpful assistant',
context_size => 2048,
temperature => 0.5,
);
print($ollama->simple_chat('Say something nice'));
my $embedding = $ollama->embedding($content);
# Get OpenAI compatible API access to Ollama
my $ollama_openai = $ollama->openai;
DESCRIPTION
THIS API IS WORK IN PROGRESS
HOW TO INSTALL OLLAMA
https://github.com/ollama/ollama/tree/main
SUPPORT
Source Code
The code is open to the world, and available for you to hack on. Please feel free to browse it and play with it, or whatever. If you want to contribute patches, please send me a diff or prod me to pull from your repository :)
https://github.com/Getty/langertha
git clone https://github.com/Getty/langertha.git
AUTHOR
Torsten Raudssus <torsten@raudssus.de> https://raudss.us/
COPYRIGHT AND LICENSE
This software is copyright (c) 2024 by Torsten Raudssus.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.