Skip to content

Commit f23e1d1

Browse files
committed
minor #447 [Platform] Fix small typo in documentation (lochmueller)
This PR was merged into the main branch. Discussion ---------- [Platform] Fix small typo in documentation | Q | A | ------------- | --- | Bug fix? | yes | New feature? | no | Docs? | no | Issues | | License | MIT Just a small typo in the documentation. Change the variable name of the result according to the model that is called. Commits ------- 9c8ba56 Fix 9e4be0a [Platform] Fix small typo in documentation
2 parents af9c23b + 9c8ba56 commit f23e1d1

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+
$vectorResult = $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)