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
623623The ``ai:platform:invoke `` command allows you to directly invoke any configured AI platform with a message.
624624This is useful for testing platform configurations and quick interactions with AI models.
625625
626- **Basic Usage **
626+ Basic Usage
627+ ^^^^^^^^^^^
627628
628629.. code-block :: terminal
629630
630631 $ php bin/console ai:platform:invoke <platform> <model> "<message>"
631632
632- **Parameters **
633+ Parameters
634+ ^^^^^^^^^^
633635
634636* ``platform ``: The name of the configured platform (e.g., ``openai ``, ``anthropic ``, ``gemini ``)
635637* ``model ``: The model to use (e.g., ``gpt-4o-mini ``, ``claude-3-5-sonnet-20241022 ``)
636638* ``message ``: The message to send to the AI platform (enclosed in quotes)
637639
638- **Examples **
640+ Examples
641+ ^^^^^^^^
639642
640643.. code-block :: terminal
641644
@@ -645,10 +648,8 @@ This is useful for testing platform configurations and quick interactions with A
645648 # Using Anthropic
646649 $ php bin/console ai:platform:invoke anthropic claude-3-5-sonnet-20241022 "Explain quantum physics"
647650
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+ ^^^^^^
652653
653654The command displays the response from the AI platform directly in the console:
654655
@@ -657,15 +658,6 @@ The command displays the response from the AI platform directly in the console:
657658 $ php bin/console ai:platform:invoke openai gpt-4o-mini "Hello!"
658659 Response: Hello! How can I assist you today?
659660
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-
669661 Usage
670662-----
671663
You can’t perform that action at this time.
0 commit comments