Download the PHP package adaiasmagdiel/meta-ai-api without Composer
On this page you can find all versions of the php package adaiasmagdiel/meta-ai-api. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download adaiasmagdiel/meta-ai-api
More information about adaiasmagdiel/meta-ai-api
Files in adaiasmagdiel/meta-ai-api
Package meta-ai-api
Short Description Llama 3 API 70B & 405B (MetaAI Reverse Engineered) in PHP, based on the work of [Strvm](https://github.com/Strvm/meta-ai-api/)
License GPL-3.0-only
Informations about the package meta-ai-api
PHP MetaAI API Wrapper
MetaAI is a PHP library designed to seamlessly interact with Meta's AI APIs, which power the backend of meta.ai. This library simplifies the complexities of authentication and communication, offering a user-friendly interface for sending queries and receiving responses from Meta AI.
This project is inspired by and builds upon the excellent work of Strvm, originally implemented in Python.
With MetaAI, you can effortlessly prompt the AI with a message and receive real-time responses directly in your PHP applications.
No API key is required.
Key Features:
- Internet-connected AI: MetaAI leverages real-time capabilities (powered by Bing), enabling you to receive up-to-date responses.
- Powered by Llama 3 LLM: Utilizes Meta's latest Llama 3 large language model for high-quality responses.
[!IMPORTANT] This project does not yet support image generation.
Installation
Install the Meta AI API library using Composer:
Getting Started
Basic Usage
Streaming Responses
Enable streaming to receive responses in real-time:
Terminal Stream Viewer
Create a terminal stream viewer to display responses in a formatted way:
Steps:
- Include the autoload file;
- Import the Client class;
- Create a Client instance;
- Send a request with streaming;
- Initialize the line counter;
- Iterate over the response stream;
- Move the cursor to the top;
- Format the message;
- Display the message in the terminal;
- Update the line counter.
License
This project is licensed under the terms of the GNU General Public License v3.
Copyright
Additional Licensing Information
For detailed information about licensing terms specific to Llama 3, please refer to Meta’s official Llama 3 License.