LaravelNeuro
Supercharge your Laravel applications with full AI integration!
Ready-made with easy-to-implement AI Pipelines to many of the AI models you have come to love, such as gpt-turbo, gemini, elevenlabs, and more.
Advanced features for complex AI agent networks that can automate even complicated workflows. LaravelNeuro provides everything you need to build AI-powered Laravel applications.
With LaravelNeuro, integrating LLMs, image- and audio-generation models, text-to-speech models, speech-to-text models, and more becomes as easy as pie:
<?php
// Example php artisan chatbot using LaravelNeuro
namespace AppConsoleCommands;
use IlluminateConsoleCommand;
use LaravelNeuroPipelinesOpenAIChatCompletion;
use LaravelNeuroPromptsSUAprompt;
class TerminalChatBot extends Command
{
protected $signature = 'app:tcb {prompt : The prompt to be answered by the chatbot}';
protected $description = 'A simple Laravel Neuro Terminal Chatbot';
public function handle()
{
$chatbot = new ChatCompletion;
$chatbot->setModel('gpt-4-turbo');
$prompt = $this->argument('prompt');
$SUA = new SUAprompt;
$SUA->pushSystem("You are a bash terminal chat bot. Don't use regular markup. Use \n for line breaks.");
$SUA->pushUser($prompt);
$chatbot->setPrompt($SUA);
$this->info("Terminal Chatbot Response:");
foreach ($chatbot->streamText() as $response)
{
echo $response;
}
echo " ";
}
}