Empty structure for Symfony AI v0.1 (#1504)

This commit is contained in:
Christopher Hertel
2025-12-23 23:06:48 +01:00
committed by GitHub
parent 5c2128b5ab
commit 283620731e
3 changed files with 27 additions and 13 deletions

View File

@@ -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'

View File

@@ -5,8 +5,5 @@
"copy-from-recipe": {
"config/": "%CONFIG_DIR%/"
},
"env": {
"OPENAI_API_KEY": ""
},
"aliases": ["ai"]
}

View 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