Skip to content

Commit c59f4ae

Browse files
authored
Fixed Typo Error on Platform documentation
I fixed a typographical error in the documentation. The static method "ofSystem" does not exist on the Symfony\AI\Platform\Message class, it should be "forSystem"
1 parent 83058fb commit c59f4ae

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/platform/doc/index.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ have different content types, like ``Text``, ``Image`` or ``Audio``, and can be
122122

123123
// Create a message bag with a user message
124124
$messageBag = new MessageBag(
125-
Message::ofSystem('You are a helpful assistant.')
125+
Message::forSystem('You are a helpful assistant.')
126126
Message::ofUser('Please describe this picture?', Image::fromFile('/path/to/image.jpg')),
127127
);
128128

0 commit comments

Comments
 (0)