Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 2836207

Browse files
authored
Empty structure for Symfony AI v0.1 (#1504)
1 parent 5c2128b commit 2836207

File tree

3 files changed

+27
-13
lines changed

3 files changed

+27
-13
lines changed
Lines changed: 23 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,27 @@
1-
# config/packages/ai.yaml
21
ai:
32
platform:
4-
openai:
5-
api_key: '%env(OPENAI_API_KEY)%'
3+
# Inference Platform configuration
4+
# see https://github.com/symfony/ai/tree/main/src/platform#platform-bridges
5+
6+
# openai:
7+
# api_key: '%env(OPENAI_API_KEY)%'
68

79
agent:
8-
default:
9-
platform: 'ai.platform.openai'
10-
model: 'gpt-5-mini'
11-
prompt: |
12-
You are a pirate and you write funny.
13-
# tools:
14-
# - 'Symfony\AI\Agent\Bridge\Clock\Clock'
10+
# Agent configuration
11+
# see https://symfony.com/doc/current/ai/bundles/ai-bundle.html
12+
13+
# default:
14+
# platform: 'ai.platform.openai'
15+
# model: 'gpt-5-mini'
16+
# prompt: |
17+
# You are a pirate and you write funny.
18+
# tools:
19+
# - 'Symfony\AI\Agent\Bridge\Clock\Clock'
20+
21+
store:
22+
# Store configuration
23+
24+
# chromadb:
25+
# default:
26+
# client: 'client.service.id'
27+
# collection: 'my_collection'

symfony/ai-bundle/0.1/manifest.json

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,5 @@
55
"copy-from-recipe": {
66
"config/": "%CONFIG_DIR%/"
77
},
8-
"env": {
9-
"OPENAI_API_KEY": ""
10-
},
118
"aliases": ["ai"]
129
}
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
* Choose an inference platform and install the corresponding bridge
2+
3+
* For example <fg=green>OpenAI</> with the <fg=green>symfony/ai-openai-bridge</> package
4+
or <fg=green>Anthropic</> with the <fg=green>symfony/ai-anthropic-bridge</> package

0 commit comments

Comments
 (0)