Skip to content

Commit 30aed96

Browse files
Update examples/ollama/chat-llama.php
Co-authored-by: Oskar Stark <[email protected]>
1 parent 80a7e03 commit 30aed96

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

examples/ollama/chat-llama.php

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

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

2424
$agent = new Agent($platform, $model, logger: logger());

0 commit comments

Comments
 (0)