add yield if we have no regular response

This commit is contained in:
team2
2026-02-16 19:18:53 +01:00
parent bad2c02da1
commit 825a63c530

View File

@@ -135,6 +135,11 @@ final class OllamaClient
} }
} }
if(!$json['response']){
yield $json;
return;
}
if (curl_errno($ch)) { if (curl_errno($ch)) {
$error = curl_error($ch); $error = curl_error($ch);
throw new RuntimeException('LLM connection error: ' . $error); throw new RuntimeException('LLM connection error: ' . $error);