Skip to content

Commit 2caf3de

Browse files
Apply suggestions from code review
Co-authored-by: Oskar Stark <[email protected]>
1 parent 30aed96 commit 2caf3de

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

examples/ollama/chat-llama.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,9 @@
2929

3030
try {
3131
$result = $agent->call($messages);
32-
$response = $result->getContent().\PHP_EOL;
32+
echo $result->getContent().\PHP_EOL;
3333
} catch(InvalidArgumentException $e) {
34-
$response = $e->getMessage() . "\nMaybe use a different model?\n";
34+
echo $e->getMessage() . "\nMaybe use a different model?\n";
3535
}
3636

3737
echo $response;

0 commit comments

Comments
 (0)