mirror of
https://github.com/symfony/recipes-contrib.git
synced 2026-09-20 03:26:24 +03:00
* Add recipe for php-llm/llm-chain-bundle * Update manifest.json * Use null instead of ~ --------- Co-authored-by: Fabien Potencier <fabien@potencier.org>
24 lines
613 B
YAML
24 lines
613 B
YAML
# config/packages/llm_chain.yaml
|
|
services:
|
|
_defaults:
|
|
autowire: true
|
|
autoconfigure: true
|
|
|
|
PhpLlm\LlmChain\Chain\ToolBox\Tool\Clock: null
|
|
|
|
llm_chain:
|
|
platform:
|
|
openai:
|
|
api_key: '%env(OPENAI_API_KEY)%'
|
|
|
|
chain:
|
|
default:
|
|
platform: 'llm_chain.platform.openai'
|
|
model:
|
|
name: 'GPT'
|
|
version: 'gpt-4o-mini'
|
|
system_prompt: |
|
|
You are a helpful assistant and you can provide the current date and time.
|
|
tools:
|
|
- 'PhpLlm\LlmChain\Chain\ToolBox\Tool\Clock'
|