diff --git a/examples/mistral/chat-multiple.php b/examples/mistral/chat-multiple.php index 03ff427a3..ae731fc6e 100644 --- a/examples/mistral/chat-multiple.php +++ b/examples/mistral/chat-multiple.php @@ -26,6 +26,6 @@ 'n' => 10, ]); -foreach ($result->asStream() as $key => $choice) { +foreach ($result->getResult()->getContent() as $key => $choice) { echo sprintf('Choice #%d: %s', ++$key, $choice->getContent()).\PHP_EOL; }