Skip to content

Commit 73beb39

Browse files
committed
bug #814 Fix Mistral multi chat example (chr-hertel)
This PR was merged into the main branch. Discussion ---------- Fix Mistral multi chat example | Q | A | ------------- | --- | Bug fix? | yes | New feature? | no | Docs? | no | Issues | | License | MIT Follows #743 Commits ------- 2922e50 Fix Mistral multi chat example
2 parents d2caecc + 2922e50 commit 73beb39

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)