Refactor various services and models for improved type handling and configuration management

This commit is contained in:
SitiWeb
2026-04-30 01:54:49 +02:00
parent f939133fe0
commit 39bdba2dfb
11 changed files with 40 additions and 33 deletions

View File

@@ -28,8 +28,8 @@ class EmbeddingService
}
$embedding = $this->llmClient->embed($text);
if (! is_array($embedding) || $embedding === []) {
throw new OllamaUnavailableException('LLM embedding response did not include a valid embedding');
if ($embedding === []) {
throw new OllamaUnavailableException('llm', 'embedding', 'LLM embedding response did not include a valid embedding');
}
EmbeddingCache::query()->updateOrCreate(