Skip to content

Bupple Engine

Bupple AI Engine is a powerful Laravel package that provides a seamless integration with multiple AI engines (OpenAI, Google Gemini, and Anthropic Claude) along with a robust memory management system. It offers a unified interface for interacting with different AI models while maintaining conversation history and context.

Features

  • Multiple AI Engine Support

    • OpenAI (GPT-4 and other models)
    • Google Gemini
    • Anthropic Claude
    • Easily extensible for additional engines
  • Memory Management

    • Multiple storage drivers (File, Database, Redis)
    • MongoDB support
    • Conversation history tracking
    • Context preservation
  • Stream Support

    • Server-Sent Events (SSE) for real-time responses
    • Efficient streaming implementation for all supported engines
  • Flexible Configuration

    • Environment-based configuration
    • Multiple model support
    • Customizable parameters for each engine
    • Easy switching between engines

Quick Start

php
use Bupple\Engine\Facades\Engine;

// Send a message and get a response
$response = Engine::engine()->send([
    ['role' => 'user', 'content' => 'Hello!']
]);

// Stream a response
$stream = Engine::engine()->stream([
    ['role' => 'user', 'content' => 'Tell me a story']
]);

// Use memory management
Engine::memory()->addUserMessage('Hello!');
$messages = Engine::memory()->getMessages();

Documentation

License

This package is open-sourced software licensed under the MIT license.

Released under the MIT License.