Skip to content

Commit 4017288

Browse files
committed
Rename OpenAI to OpenAi
1 parent 6dc1fa2 commit 4017288

File tree

97 files changed

+224
-224
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

97 files changed

+224
-224
lines changed

demo/config/packages/ai.yaml

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ ai:
66
blog:
77
# platform: 'ai.platform.anthropic'
88
model:
9-
class: 'Symfony\AI\Platform\Bridge\OpenAI\GPT'
10-
name: !php/const Symfony\AI\Platform\Bridge\OpenAI\GPT::GPT_4O_MINI
9+
class: 'Symfony\AI\Platform\Bridge\OpenAi\GPT'
10+
name: !php/const Symfony\AI\Platform\Bridge\OpenAi\GPT::GPT_4O_MINI
1111
tools:
1212
- 'Symfony\AI\Agent\Toolbox\Tool\SimilaritySearch'
1313
- service: 'clock'
@@ -16,8 +16,8 @@ ai:
1616
method: 'now'
1717
stream:
1818
model:
19-
class: 'Symfony\AI\Platform\Bridge\OpenAI\GPT'
20-
name: !php/const Symfony\AI\Platform\Bridge\OpenAI\GPT::GPT_4O_MINI
19+
class: 'Symfony\AI\Platform\Bridge\OpenAi\GPT'
20+
name: !php/const Symfony\AI\Platform\Bridge\OpenAi\GPT::GPT_4O_MINI
2121
system_prompt: |
2222
You are an example chat application where messages from the LLM are streamed to the user using
2323
Server-Sent Events via `symfony/ux-turbo` / Turbo Streams. This example does not use any custom
@@ -26,13 +26,13 @@ ai:
2626
tools: false
2727
youtube:
2828
model:
29-
class: 'Symfony\AI\Platform\Bridge\OpenAI\GPT'
30-
name: !php/const Symfony\AI\Platform\Bridge\OpenAI\GPT::GPT_4O_MINI
29+
class: 'Symfony\AI\Platform\Bridge\OpenAi\GPT'
30+
name: !php/const Symfony\AI\Platform\Bridge\OpenAi\GPT::GPT_4O_MINI
3131
tools: false
3232
wikipedia:
3333
model:
34-
class: 'Symfony\AI\Platform\Bridge\OpenAI\GPT'
35-
name: !php/const Symfony\AI\Platform\Bridge\OpenAI\GPT::GPT_4O_MINI
34+
class: 'Symfony\AI\Platform\Bridge\OpenAi\GPT'
35+
name: !php/const Symfony\AI\Platform\Bridge\OpenAi\GPT::GPT_4O_MINI
3636
options:
3737
temperature: 0.5
3838
system_prompt: 'Please answer the users question based on Wikipedia and provide a link to the article.'
@@ -41,8 +41,8 @@ ai:
4141
- 'Symfony\AI\Agent\Toolbox\Tool\Wikipedia'
4242
audio:
4343
model:
44-
class: 'Symfony\AI\Platform\Bridge\OpenAI\GPT'
45-
name: !php/const Symfony\AI\Platform\Bridge\OpenAI\GPT::GPT_4O_MINI
44+
class: 'Symfony\AI\Platform\Bridge\OpenAi\GPT'
45+
name: !php/const Symfony\AI\Platform\Bridge\OpenAi\GPT::GPT_4O_MINI
4646
system_prompt: 'You are a friendly chatbot that likes to have a conversation with users and asks them some questions.'
4747
tools:
4848
# Agent in agent 🤯
@@ -56,8 +56,8 @@ ai:
5656
indexer:
5757
default:
5858
model:
59-
class: 'Symfony\AI\Platform\Bridge\OpenAI\Embeddings'
60-
name: !php/const Symfony\AI\Platform\Bridge\OpenAI\Embeddings::TEXT_ADA_002
59+
class: 'Symfony\AI\Platform\Bridge\OpenAi\Embeddings'
60+
name: !php/const Symfony\AI\Platform\Bridge\OpenAi\Embeddings::TEXT_ADA_002
6161

6262
services:
6363
_defaults:

demo/src/Audio/Chat.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
namespace App\Audio;
1313

1414
use Symfony\AI\Agent\AgentInterface;
15-
use Symfony\AI\Platform\Bridge\OpenAI\Whisper;
15+
use Symfony\AI\Platform\Bridge\OpenAi\Whisper;
1616
use Symfony\AI\Platform\Message\Content\Audio;
1717
use Symfony\AI\Platform\Message\Message;
1818
use Symfony\AI\Platform\Message\MessageBag;

demo/src/Blog/Command/QueryCommand.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
namespace App\Blog\Command;
1313

1414
use Codewithkyrian\ChromaDB\Client;
15-
use Symfony\AI\Platform\Bridge\OpenAI\Embeddings;
15+
use Symfony\AI\Platform\Bridge\OpenAi\Embeddings;
1616
use Symfony\AI\Platform\PlatformInterface;
1717
use Symfony\Component\Console\Attribute\AsCommand;
1818
use Symfony\Component\Console\Command\Command;

demo/src/Video/TwigComponent.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111

1212
namespace App\Video;
1313

14-
use Symfony\AI\Platform\Bridge\OpenAI\GPT;
14+
use Symfony\AI\Platform\Bridge\OpenAi\GPT;
1515
use Symfony\AI\Platform\Message\Content\Image;
1616
use Symfony\AI\Platform\Message\Message;
1717
use Symfony\AI\Platform\Message\MessageBag;

examples/albert/chat.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111

1212
use Symfony\AI\Agent\Agent;
1313
use Symfony\AI\Platform\Bridge\Albert\PlatformFactory;
14-
use Symfony\AI\Platform\Bridge\OpenAI\GPT;
14+
use Symfony\AI\Platform\Bridge\OpenAi\GPT;
1515
use Symfony\AI\Platform\Message\Message;
1616
use Symfony\AI\Platform\Message\MessageBag;
1717

examples/azure/audio-transcript.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@
99
* file that was distributed with this source code.
1010
*/
1111

12-
use Symfony\AI\Platform\Bridge\Azure\OpenAI\PlatformFactory;
13-
use Symfony\AI\Platform\Bridge\OpenAI\Whisper;
12+
use Symfony\AI\Platform\Bridge\Azure\OpenAi\PlatformFactory;
13+
use Symfony\AI\Platform\Bridge\OpenAi\Whisper;
1414
use Symfony\AI\Platform\Message\Content\Audio;
1515

1616
require_once dirname(__DIR__).'/bootstrap.php';

examples/azure/chat-gpt.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@
1010
*/
1111

1212
use Symfony\AI\Agent\Agent;
13-
use Symfony\AI\Platform\Bridge\Azure\OpenAI\PlatformFactory;
14-
use Symfony\AI\Platform\Bridge\OpenAI\GPT;
13+
use Symfony\AI\Platform\Bridge\Azure\OpenAi\PlatformFactory;
14+
use Symfony\AI\Platform\Bridge\OpenAi\GPT;
1515
use Symfony\AI\Platform\Message\Message;
1616
use Symfony\AI\Platform\Message\MessageBag;
1717

examples/azure/embeddings.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@
99
* file that was distributed with this source code.
1010
*/
1111

12-
use Symfony\AI\Platform\Bridge\Azure\OpenAI\PlatformFactory;
13-
use Symfony\AI\Platform\Bridge\OpenAI\Embeddings;
12+
use Symfony\AI\Platform\Bridge\Azure\OpenAi\PlatformFactory;
13+
use Symfony\AI\Platform\Bridge\OpenAi\Embeddings;
1414

1515
require_once dirname(__DIR__).'/bootstrap.php';
1616

examples/document/vectorizing.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@
99
* file that was distributed with this source code.
1010
*/
1111

12-
use Symfony\AI\Platform\Bridge\OpenAI\Embeddings;
13-
use Symfony\AI\Platform\Bridge\OpenAI\PlatformFactory;
12+
use Symfony\AI\Platform\Bridge\OpenAi\Embeddings;
13+
use Symfony\AI\Platform\Bridge\OpenAi\PlatformFactory;
1414
use Symfony\AI\Store\Document\TextDocument;
1515
use Symfony\AI\Store\Document\VectorDocument;
1616
use Symfony\AI\Store\Document\Vectorizer;

examples/memory/mariadb.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,9 @@
1414
use Symfony\AI\Agent\Agent;
1515
use Symfony\AI\Agent\Memory\EmbeddingProvider;
1616
use Symfony\AI\Agent\Memory\MemoryInputProcessor;
17-
use Symfony\AI\Platform\Bridge\OpenAI\Embeddings;
18-
use Symfony\AI\Platform\Bridge\OpenAI\GPT;
19-
use Symfony\AI\Platform\Bridge\OpenAI\PlatformFactory;
17+
use Symfony\AI\Platform\Bridge\OpenAi\Embeddings;
18+
use Symfony\AI\Platform\Bridge\OpenAi\GPT;
19+
use Symfony\AI\Platform\Bridge\OpenAi\PlatformFactory;
2020
use Symfony\AI\Platform\Message\Message;
2121
use Symfony\AI\Platform\Message\MessageBag;
2222
use Symfony\AI\Store\Bridge\MariaDB\Store;

0 commit comments

Comments
 (0)