Refactor various services and models for improved type handling and configuration management
This commit is contained in:
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user