php-llm/llm-chain

PHP component with tooling around LLMs.

dev-main 2024-04-07 21:28 UTC

This package is auto-updated.

Last update: 2024-04-07 21:54:06 UTC


README

Simple PHP toolkit for building LLM chains.

Requirements

  • PHP 8.1 or higher

Installation

The recommended way to install LlmChain is through Composer:

composer require php-llm/llm-chain

Usage

See examples - to run the examples, you need to export the needed environment variables with your API key:

export OPENAI_API_KEY=sk-...
export SERP_API_KEY=...