Refactor various services and models for improved type handling and configuration management
This commit is contained in:
@@ -97,7 +97,7 @@ class OllamaClient implements LlmClientInterface
|
||||
private function mapException(Throwable $e, string $operation): OllamaUnavailableException
|
||||
{
|
||||
if ($e instanceof RequestException) {
|
||||
$body = $e->response?->body();
|
||||
$body = $e->response->body();
|
||||
$snippet = $body ? mb_substr($body, 0, 280) : null;
|
||||
|
||||
return new OllamaUnavailableException('ollama', $operation, $e->getMessage(), $e, $snippet);
|
||||
|
||||
Reference in New Issue
Block a user