Download the PHP package woutersf/ai-connection-bundle without Composer

On this page you can find all versions of the php package woutersf/ai-connection-bundle. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package ai-connection-bundle

Mautic AI Connection Bundle

A core AI connection plugin for Mautic that manages LiteLLM integration and provides centralized AI services for all Mautic AI-powered plugins.

Overview

The Mautic AI Connection Bundle serves as the foundation for AI functionality in Mautic. It provides a centralized LiteLLM service that can be used by other AI-powered plugins such as:

Features

Requirements

Installation

Via Composer

Manual Installation

  1. Download or clone this repository
  2. Place the MauticAIconnectionBundle folder in docroot/plugins/
  3. Clear Mautic cache:

  4. Go to Mautic Settings → Plugins
  5. Click "Install/Upgrade Plugins"
  6. Find "Mautic AI Connection" and publish it

Configuration

Navigate to Mautic Settings → Plugins → Mautic AI Connection to configure the plugin.

Required Settings

  1. LiteLLM Endpoint

    • URL of your LiteLLM proxy server or an OPENAI API key.
    • Example: http://localhost:4000 or https://your-litellm-server.com or https://api.openai.com/v1
    • Note: This should point to your LiteLLM proxy, NOT directly to OpenAI or other providers
  2. LiteLLM Secret Key
    • API key for authenticating with your LiteLLM instance or Openai.
    • This credential is encrypted and stored securely

Usage in Other Plugins

Other Mautic plugins can use the LiteLLM service provided by this bundle.

Accessing the Service

Available Methods

1. Chat Completion (with tools support)

2. Simple Completion

3. Streaming Completion

4. Speech-to-Text

5. Get Available Models

Subscribing to the Service in Controllers

Architecture

This plugin follows a centralized service architecture:

Composer Dependency

Other AI plugins should declare this bundle as a dependency in their composer.json:

Security

Troubleshooting

"LiteLLM endpoint and secret key must be configured"

Solution: Configure the LiteLLM endpoint and secret key in the plugin settings.

"404 Not Found" when making AI requests

Issue: The endpoint is pointing directly to OpenAI/Anthropic instead of LiteLLM proxy.

Solution: Ensure you're using your LiteLLM proxy URL (e.g., http://localhost:4000), not https://api.openai.com.

Models not appearing in dropdown

Issue: LiteLLM instance is not reachable or not properly configured.

Solution:

  1. Verify LiteLLM is running: curl http://localhost:4000/models
  2. Check endpoint URL in plugin settings
  3. Verify secret key is correct

Development

Running Tests

Code Style

Follow Mautic coding standards:

Support

License

GPL-3.0-or-later

Credits

Created by Frederik Wouters

Version

1.0.0

Changelog

1.0.0 (2024)


All versions of ai-connection-bundle with dependencies

PHP Build Version
Package Version
Requires php Version ^7.4|^8.0
mautic/core Version ^4.0|^5.0
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package woutersf/ai-connection-bundle contains the following files

Loading the files please wait ...