mirror of
https://github.com/symfony/recipes.git
synced 2026-09-12 07:36:30 +03:00
Update Flex endpoint
This commit is contained in:
@@ -0,0 +1,42 @@
|
||||
{
|
||||
"manifests": {
|
||||
"symfony/ai-bundle": {
|
||||
"manifest": {
|
||||
"bundles": {
|
||||
"Symfony\\AI\\AiBundle\\AiBundle": [
|
||||
"all"
|
||||
]
|
||||
},
|
||||
"copy-from-recipe": {
|
||||
"config/": "%CONFIG_DIR%/"
|
||||
},
|
||||
"env": {
|
||||
"OPENAI_API_KEY": ""
|
||||
}
|
||||
},
|
||||
"files": {
|
||||
"config/packages/ai.yaml": {
|
||||
"contents": [
|
||||
"# config/packages/ai.yaml",
|
||||
"ai:",
|
||||
" platform:",
|
||||
" openai:",
|
||||
" api_key: '%env(OPENAI_API_KEY)%'",
|
||||
"",
|
||||
" agent:",
|
||||
" default:",
|
||||
" platform: 'ai.platform.openai'",
|
||||
" model: 'gpt-4o-mini'",
|
||||
" prompt: |",
|
||||
" You are a pirate and you write funny.",
|
||||
"# tools:",
|
||||
"# - 'Symfony\\AI\\Agent\\Bridge\\Clock\\Clock'",
|
||||
""
|
||||
],
|
||||
"executable": false
|
||||
}
|
||||
},
|
||||
"ref": "05cfb98b7551d4647c6a9b6f777a8a697642eb9e"
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -18,13 +18,6 @@
|
||||
"config/packages/ai.yaml": {
|
||||
"contents": [
|
||||
"# config/packages/ai.yaml",
|
||||
"services:",
|
||||
" _defaults:",
|
||||
" autowire: true",
|
||||
" autoconfigure: true",
|
||||
"",
|
||||
" Symfony\\AI\\Agent\\Toolbox\\Tool\\Clock: null",
|
||||
"",
|
||||
"ai:",
|
||||
" platform:",
|
||||
" openai:",
|
||||
@@ -35,15 +28,15 @@
|
||||
" platform: 'ai.platform.openai'",
|
||||
" model: 'gpt-4o-mini'",
|
||||
" prompt: |",
|
||||
" You are a helpful assistant and you can provide the current date and time.",
|
||||
" tools:",
|
||||
" - 'Symfony\\AI\\Agent\\Toolbox\\Tool\\Clock'",
|
||||
" You are a pirate and you write funny.",
|
||||
"# tools:",
|
||||
"# - 'Symfony\\AI\\Agent\\Bridge\\Clock\\Clock'",
|
||||
""
|
||||
],
|
||||
"executable": false
|
||||
}
|
||||
},
|
||||
"ref": "9bd9de37b2e4b2577e98023c4e279c0841b97072"
|
||||
"ref": "05cfb98b7551d4647c6a9b6f777a8a697642eb9e"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user