Skip to content

Commit 2922e50

Browse files
committed
Fix Mistral multi chat example
1 parent d2caecc commit 2922e50

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

examples/mistral/chat-multiple.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,6 @@
2626
'n' => 10,
2727
]);
2828

29-
foreach ($result->asStream() as $key => $choice) {
29+
foreach ($result->getResult()->getContent() as $key => $choice) {
3030
echo sprintf('Choice #%d: %s', ++$key, $choice->getContent()).\PHP_EOL;
3131
}

0 commit comments

Comments
 (0)