|
4 | 4 | api_key: '%env(OPENAI_API_KEY)%'
|
5 | 5 | agent:
|
6 | 6 | blog:
|
7 |
| - model: |
8 |
| - class: 'Symfony\AI\Platform\Bridge\OpenAi\Gpt' |
9 |
| - name: !php/const Symfony\AI\Platform\Bridge\OpenAi\Gpt::GPT_4O_MINI |
| 7 | + model: 'gpt-4o-mini' |
10 | 8 | tools:
|
11 | 9 | - 'Symfony\AI\Agent\Toolbox\Tool\SimilaritySearch'
|
12 | 10 | - service: 'clock'
|
13 | 11 | name: 'clock'
|
14 | 12 | description: 'Provides the current date and time.'
|
15 | 13 | method: 'now'
|
16 | 14 | stream:
|
17 |
| - model: |
18 |
| - class: 'Symfony\AI\Platform\Bridge\OpenAi\Gpt' |
19 |
| - name: !php/const Symfony\AI\Platform\Bridge\OpenAi\Gpt::GPT_4O_MINI |
| 15 | + model: 'gpt-4o-mini' |
20 | 16 | prompt: |
|
21 | 17 | You are an example chat application where messages from the LLM are streamed to the user using
|
22 | 18 | Server-Sent Events via `symfony/ux-turbo` / Turbo Streams. This example does not use any custom
|
23 | 19 | javascript and solely relies on the built-in `live` & `turbo_stream` Stimulus controllers.
|
24 | 20 | Whatever the user asks, tell them about the application & used technologies.
|
25 | 21 | tools: false
|
26 | 22 | youtube:
|
27 |
| - model: |
28 |
| - class: 'Symfony\AI\Platform\Bridge\OpenAi\Gpt' |
29 |
| - name: !php/const Symfony\AI\Platform\Bridge\OpenAi\Gpt::GPT_4O_MINI |
| 23 | + model: 'gpt-4o-mini' |
30 | 24 | tools: false
|
31 | 25 | wikipedia:
|
32 | 26 | model:
|
33 |
| - class: 'Symfony\AI\Platform\Bridge\OpenAi\Gpt' |
34 |
| - name: !php/const Symfony\AI\Platform\Bridge\OpenAi\Gpt::GPT_4O_MINI |
| 27 | + name: 'gpt-4o-mini' |
35 | 28 | options:
|
36 | 29 | temperature: 0.5
|
37 | 30 | prompt:
|
|
40 | 33 | tools:
|
41 | 34 | - 'Symfony\AI\Agent\Toolbox\Tool\Wikipedia'
|
42 | 35 | audio:
|
43 |
| - model: |
44 |
| - class: 'Symfony\AI\Platform\Bridge\OpenAi\Gpt' |
45 |
| - name: 'gpt-4o-mini?temperature=1.0' |
| 36 | + model: 'gpt-4o-mini?temperature=1.0' |
46 | 37 | prompt: 'You are a friendly chatbot that likes to have a conversation with users and asks them some questions.'
|
47 | 38 | tools:
|
48 | 39 | # Agent in agent 🤯
|
|
55 | 46 | collection: 'symfony_blog'
|
56 | 47 | vectorizer:
|
57 | 48 | openai:
|
58 |
| - model: |
59 |
| - class: 'Symfony\AI\Platform\Bridge\OpenAi\Embeddings' |
60 |
| - name: !php/const Symfony\AI\Platform\Bridge\OpenAi\Embeddings::TEXT_ADA_002 |
| 49 | + model: 'text-embedding-ada-002' |
61 | 50 | indexer:
|
62 | 51 | blog:
|
63 | 52 | loader: 'Symfony\AI\Store\Document\Loader\RssFeedLoader'
|
|
0 commit comments