File tree Expand file tree Collapse file tree 1 file changed +8
-16
lines changed Expand file tree Collapse file tree 1 file changed +8
-16
lines changed Original file line number Diff line number Diff line change @@ -623,19 +623,22 @@ The AI Bundle provides several console commands for interacting with AI platform
623
623
The ``ai:platform:invoke `` command allows you to directly invoke any configured AI platform with a message.
624
624
This is useful for testing platform configurations and quick interactions with AI models.
625
625
626
- **Basic Usage **
626
+ Basic Usage
627
+ ^^^^^^^^^^^
627
628
628
629
.. code-block :: terminal
629
630
630
631
$ php bin/console ai:platform:invoke <platform> <model> "<message>"
631
632
632
- **Parameters **
633
+ Parameters
634
+ ^^^^^^^^^^
633
635
634
636
* ``platform ``: The name of the configured platform (e.g., ``openai ``, ``anthropic ``, ``gemini ``)
635
637
* ``model ``: The model to use (e.g., ``gpt-4o-mini ``, ``claude-3-5-sonnet-20241022 ``)
636
638
* ``message ``: The message to send to the AI platform (enclosed in quotes)
637
639
638
- **Examples **
640
+ Examples
641
+ ^^^^^^^^
639
642
640
643
.. code-block :: terminal
641
644
@@ -645,10 +648,8 @@ This is useful for testing platform configurations and quick interactions with A
645
648
# Using Anthropic
646
649
$ php bin/console ai:platform:invoke anthropic claude-3-5-sonnet-20241022 "Explain quantum physics"
647
650
648
- # Using Google Gemini
649
- $ php bin/console ai:platform:invoke gemini gemini-1.5-flash "Write a haiku about coding"
650
-
651
- **Output **
651
+ Output
652
+ ^^^^^^
652
653
653
654
The command displays the response from the AI platform directly in the console:
654
655
@@ -657,15 +658,6 @@ The command displays the response from the AI platform directly in the console:
657
658
$ php bin/console ai:platform:invoke openai gpt-4o-mini "Hello!"
658
659
Response: Hello! How can I assist you today?
659
660
660
- **Available Platforms **
661
-
662
- The available platforms depend on your configuration in ``config/packages/ai.yaml ``.
663
- Use tab completion to see the list of configured platforms:
664
-
665
- .. code-block :: terminal
666
-
667
- $ php bin/console ai:platform:invoke <TAB>
668
-
669
661
Usage
670
662
-----
671
663
You can’t perform that action at this time.
0 commit comments