php-llm/llm-chain-bundle Adjust namespace for 0.19 (#1764)

This commit is contained in:
Oskar Stark
2025-03-24 10:11:05 +01:00
committed by GitHub
parent 719c29214f
commit 7958f69e70
2 changed files with 34 additions and 0 deletions
@@ -0,0 +1,23 @@
# 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'
@@ -0,0 +1,11 @@
{
"bundles": {
"PhpLlm\\LlmChainBundle\\LlmChainBundle": ["all"]
},
"copy-from-recipe": {
"config/": "%CONFIG_DIR%/"
},
"env": {
"OPENAI_API_KEY": ""
}
}