We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 30aed96 commit 2caf3deCopy full SHA for 2caf3de
examples/ollama/chat-llama.php
@@ -29,9 +29,9 @@
29
30
try {
31
$result = $agent->call($messages);
32
- $response = $result->getContent().\PHP_EOL;
+ echo $result->getContent().\PHP_EOL;
33
} catch(InvalidArgumentException $e) {
34
- $response = $e->getMessage() . "\nMaybe use a different model?\n";
+ echo $e->getMessage() . "\nMaybe use a different model?\n";
35
}
36
37
echo $response;
0 commit comments