From 825a63c530212e2e3277e4681d582317509f97d5 Mon Sep 17 00:00:00 2001 From: team2 Date: Mon, 16 Feb 2026 19:18:53 +0100 Subject: [PATCH] add yield if we have no regular response --- src/Infrastructure/OllamaClient.php | 5 +++++ 1 file changed, 5 insertions(+) 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);