NAME
Langertha::Engine::OpenAI - OpenAI API
VERSION
version 0.002
SYNOPSIS
use Langertha::Engine::OpenAI;
my $openai = Langertha::Engine::OpenAI->new(
api_key => $ENV{OPENAI_API_KEY},
model => 'gpt-4o-mini',
system_prompt => 'You are a helpful assistant',
);
print($openai->simple_chat('Say something nice'));
my $embedding = $openai->embedding($content);
DESCRIPTION
THIS API IS WORK IN PROGRESS
HOW TO GET OPENAI API KEY
https://platform.openai.com/docs/quickstart
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.