diff --git a/src/Infrastructure/OllamaClient.php b/src/Infrastructure/OllamaClient.php index 9480110..5ff7cad 100644 --- a/src/Infrastructure/OllamaClient.php +++ b/src/Infrastructure/OllamaClient.php @@ -135,6 +135,11 @@ final class OllamaClient } } + if(!$json['response']){ + yield $json; + return; + } + if (curl_errno($ch)) { $error = curl_error($ch); throw new RuntimeException('LLM connection error: ' . $error);