add yield if we have no regular response
This commit is contained in:
@@ -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);
|
||||||
|
|||||||
Reference in New Issue
Block a user