Skip to content

Commit 1d9b2d8

Browse files
authored
chore: update to lib v0.19 (#20)
1 parent d8805b5 commit 1d9b2d8

File tree

3 files changed

+58
-49
lines changed

3 files changed

+58
-49
lines changed

composer.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
"ext-iconv": "*",
1010
"codewithkyrian/chromadb-php": "^0.3.0",
1111
"league/commonmark": "^2.6",
12-
"php-llm/llm-chain-bundle": "^0.18",
12+
"php-llm/llm-chain-bundle": "^0.19",
1313
"runtime/frankenphp-symfony": "^0.2.0",
1414
"symfony/asset": "7.2.*",
1515
"symfony/asset-mapper": "7.2.*",

composer.lock

+40-40
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

config/packages/llm_chain.yaml

+17-8
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,11 @@ llm_chain:
2222
name: 'GPT'
2323
version: 'gpt-4o-mini'
2424
tools:
25-
- 'PhpLlm\LlmChain\Chain\ToolBox\Tool\SimilaritySearch'
25+
- 'PhpLlm\LlmChain\Chain\Toolbox\Tool\SimilaritySearch'
26+
- service: 'clock'
27+
name: 'clock'
28+
description: 'Provides the current date and time.'
29+
method: 'now'
2630
youtube:
2731
model:
2832
name: 'GPT'
@@ -36,13 +40,18 @@ llm_chain:
3640
temperature: 0.5
3741
system_prompt: 'Please answer the users question based on Wikipedia and provide a link to the article.'
3842
tools:
39-
- 'PhpLlm\LlmChain\Chain\ToolBox\Tool\Wikipedia'
43+
- 'PhpLlm\LlmChain\Chain\Toolbox\Tool\Wikipedia'
4044
audio:
4145
model:
4246
name: 'GPT'
4347
version: 'gpt-4o-mini'
4448
system_prompt: 'You are a friendly chatbot that likes to have a conversation with users and asks them some questions.'
45-
tools: false
49+
tools:
50+
# Chain in chain 🤯
51+
- service: 'llm_chain.chain.blog'
52+
name: 'symfony_blog'
53+
description: 'Can answer questions based on the Symfony blog.'
54+
is_chain: true
4655
store:
4756
chroma_db:
4857
symfonycon:
@@ -63,10 +72,10 @@ services:
6372
autowire: true
6473
autoconfigure: true
6574

66-
# PhpLlm\LlmChain\Chain\ToolBox\Tool\Clock: ~
67-
# PhpLlm\LlmChain\Chain\ToolBox\Tool\OpenMeteo: ~
68-
# PhpLlm\LlmChain\Chain\ToolBox\Tool\SerpApi:
75+
# PhpLlm\LlmChain\Chain\Toolbox\Tool\Clock: ~
76+
# PhpLlm\LlmChain\Chain\Toolbox\Tool\OpenMeteo: ~
77+
# PhpLlm\LlmChain\Chain\Toolbox\Tool\SerpApi:
6978
# $apiKey: '%env(SERP_API_KEY)%'
70-
PhpLlm\LlmChain\Chain\ToolBox\Tool\Wikipedia: ~
71-
PhpLlm\LlmChain\Chain\ToolBox\Tool\SimilaritySearch: ~
79+
PhpLlm\LlmChain\Chain\Toolbox\Tool\Wikipedia: ~
80+
PhpLlm\LlmChain\Chain\Toolbox\Tool\SimilaritySearch: ~
7281

0 commit comments

Comments
 (0)