Skip to content

Commit 9e4be0a

Browse files
committed
[Platform] Fix small typo in documentation
1 parent c1991ef commit 9e4be0a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/platform/doc/index.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,10 +45,10 @@ And with a ``Symfony\AI\Platform\PlatformInterface`` instance, and a ``Symfony\A
4545
use the platform to interact with the AI model::
4646

4747
// Generate a vector embedding for a text, returns a Symfony\AI\Platform\Result\VectorResult
48-
$result = $platform->invoke($embeddings, 'What is the capital of France?');
48+
$embeddingsResult = $platform->invoke($embeddings, 'What is the capital of France?');
4949

5050
// Generate a text completion with GPT, returns a Symfony\AI\Platform\Result\TextResult
51-
$embeddingsResult = $platform->invoke($model, new MessageBag(Message::ofUser('What is the capital of France?')));
51+
$result = $platform->invoke($model, new MessageBag(Message::ofUser('What is the capital of France?')));
5252

5353
Depending on the model and its capabilities, different types of inputs and outputs are supported, which results in a
5454
very flexible and powerful interface for working with AI models.

0 commit comments

Comments
 (0)