php-llm / llm-chain
PHP component with tooling around LLMs.
dev-main
2024-04-07 21:28 UTC
Requires
- php: ^8.1
- psr/cache: ^3.0
- psr/log: ^3.0
- symfony/http-client: ^6.3 || ^7.0
Requires (Dev)
- php-cs-fixer/shim: ^3.35
- phpstan/phpstan: ^1.10
- phpunit/phpunit: ^10.4
- probots-io/pinecone-php: ^0.0.3
- symfony/console: ^6.4 || ^7.0
Suggests
- probots-io/pinecone-php: For using the Pinecone client.
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=...