Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

php-llm/llm-chain-bundle: Adjust Toolbox namespace for 0.19 #1764

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 23 additions & 0 deletions php-llm/llm-chain-bundle/0.19/config/packages/llm_chain.yaml
Original file line number Diff line number Diff line change
@@ -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'
11 changes: 11 additions & 0 deletions php-llm/llm-chain-bundle/0.19/manifest.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"bundles": {
"PhpLlm\\LlmChainBundle\\LlmChainBundle": ["all"]
},
"copy-from-recipe": {
"config/": "%CONFIG_DIR%/"
},
"env": {
"OPENAI_API_KEY": ""
}
}
Loading