mirror of
https://github.com/symfony/recipes.git
synced 2026-03-23 23:32:10 +01:00
Empty structure for Symfony AI v0.1 (#1504)
This commit is contained in:
committed by
GitHub
parent
5c2128b5ab
commit
283620731e
@@ -1,14 +1,27 @@
|
||||
# config/packages/ai.yaml
|
||||
ai:
|
||||
platform:
|
||||
openai:
|
||||
api_key: '%env(OPENAI_API_KEY)%'
|
||||
# Inference Platform configuration
|
||||
# see https://github.com/symfony/ai/tree/main/src/platform#platform-bridges
|
||||
|
||||
# openai:
|
||||
# api_key: '%env(OPENAI_API_KEY)%'
|
||||
|
||||
agent:
|
||||
default:
|
||||
platform: 'ai.platform.openai'
|
||||
model: 'gpt-5-mini'
|
||||
prompt: |
|
||||
You are a pirate and you write funny.
|
||||
# tools:
|
||||
# - 'Symfony\AI\Agent\Bridge\Clock\Clock'
|
||||
# Agent configuration
|
||||
# see https://symfony.com/doc/current/ai/bundles/ai-bundle.html
|
||||
|
||||
# default:
|
||||
# platform: 'ai.platform.openai'
|
||||
# model: 'gpt-5-mini'
|
||||
# prompt: |
|
||||
# You are a pirate and you write funny.
|
||||
# tools:
|
||||
# - 'Symfony\AI\Agent\Bridge\Clock\Clock'
|
||||
|
||||
store:
|
||||
# Store configuration
|
||||
|
||||
# chromadb:
|
||||
# default:
|
||||
# client: 'client.service.id'
|
||||
# collection: 'my_collection'
|
||||
|
||||
@@ -5,8 +5,5 @@
|
||||
"copy-from-recipe": {
|
||||
"config/": "%CONFIG_DIR%/"
|
||||
},
|
||||
"env": {
|
||||
"OPENAI_API_KEY": ""
|
||||
},
|
||||
"aliases": ["ai"]
|
||||
}
|
||||
|
||||
4
symfony/ai-bundle/0.1/post-install.txt
Normal file
4
symfony/ai-bundle/0.1/post-install.txt
Normal file
@@ -0,0 +1,4 @@
|
||||
* Choose an inference platform and install the corresponding bridge
|
||||
|
||||
* For example <fg=green>OpenAI</> with the <fg=green>symfony/ai-openai-bridge</> package
|
||||
or <fg=green>Anthropic</> with the <fg=green>symfony/ai-anthropic-bridge</> package
|
||||
Reference in New Issue
Block a user