Skip to content

Commit b6f4da4

Browse files
committed
better error message fir llm config
1 parent 875c109 commit b6f4da4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Model/LlmFactory.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ protected function create(string $type): ChatInterface|EmbeddingGeneratorInterfa
6262
$embedding = $this->openaiEmbeddingGeneratorFactory->create(['config' => $this->openAIConfig]);
6363
}
6464
else {
65-
throw new InvalidArgumentException(__('%s is not supported', $provider));
65+
throw new InvalidArgumentException(__('Please configure LLM Provider'));
6666
}
6767
return match($type) {
6868
'chat' => $chat,

0 commit comments

Comments
 (0)