Skip to content

Commit 9e3231e

Browse files
committed
bug #567 [Ollama] simplify example (OskarStark)
This PR was squashed before being merged into the main branch. Discussion ---------- [Ollama] simplify example | Q | A | ------------- | --- | Bug fix? | no | New feature? | no | Docs? | no | Issues | -- | License | MIT fyi `@dollmetzer` Commits ------- 0a67201 [Ollama] simplify example
2 parents 404b0dc + 0a67201 commit 9e3231e

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

examples/ollama/chat-llama.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,7 @@
1818
require_once dirname(__DIR__).'/bootstrap.php';
1919

2020
$platform = PlatformFactory::create(env('OLLAMA_HOST_URL'), http_client());
21-
$ollamaModel = $_SERVER['OLLAMA_MODEL'] ?? '';
22-
$model = new Ollama($ollamaModel);
21+
$model = new Ollama($_SERVER['OLLAMA_MODEL'] ?? '');
2322

2423
$agent = new Agent($platform, $model, logger: logger());
2524
$messages = new MessageBag(

0 commit comments

Comments
 (0)