Skip to content

Commit ccef642

Browse files
committed
Simplify ai:platform:invoke documentation
- Use subsection headers (^^^) instead of bold formatting - Remove Google Gemini example - Remove 'Available Platforms' section with tab completion
1 parent b76f652 commit ccef642

File tree

1 file changed

+8
-16
lines changed

1 file changed

+8
-16
lines changed

src/ai-bundle/doc/index.rst

Lines changed: 8 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -623,19 +623,22 @@ The AI Bundle provides several console commands for interacting with AI platform
623623
The ``ai:platform:invoke`` command allows you to directly invoke any configured AI platform with a message.
624624
This 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

653654
The 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

0 commit comments

Comments
 (0)