Skip to content

Commit 7958f69

Browse files
authored
php-llm/llm-chain-bundle Adjust namespace for 0.19 (#1764)
1 parent 719c292 commit 7958f69

File tree

2 files changed

+34
-0
lines changed

2 files changed

+34
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
# config/packages/llm_chain.yaml
2+
services:
3+
_defaults:
4+
autowire: true
5+
autoconfigure: true
6+
7+
PhpLlm\LlmChain\Chain\Toolbox\Tool\Clock: null
8+
9+
llm_chain:
10+
platform:
11+
openai:
12+
api_key: '%env(OPENAI_API_KEY)%'
13+
14+
chain:
15+
default:
16+
platform: 'llm_chain.platform.openai'
17+
model:
18+
name: 'GPT'
19+
version: 'gpt-4o-mini'
20+
system_prompt: |
21+
You are a helpful assistant and you can provide the current date and time.
22+
tools:
23+
- 'PhpLlm\LlmChain\Chain\Toolbox\Tool\Clock'
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
{
2+
"bundles": {
3+
"PhpLlm\\LlmChainBundle\\LlmChainBundle": ["all"]
4+
},
5+
"copy-from-recipe": {
6+
"config/": "%CONFIG_DIR%/"
7+
},
8+
"env": {
9+
"OPENAI_API_KEY": ""
10+
}
11+
}

0 commit comments

Comments
 (0)