Skip to content
This repository was archived by the owner on Mar 7, 2026. It is now read-only.

Commit 923c417

Browse files
committed
update err msg
1 parent 88b25c1 commit 923c417

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/lib/llm/client.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@ import { createAnthropic } from '@ai-sdk/anthropic'
44
import { LanguageModel } from 'ai'
55

66
const resolveLLMClient = async (llmName: string): Promise<LanguageModel> => {
7+
if (!llmName || llmName === '') {
8+
throw new Error('No LLM has been configured. Please setup an LLM in settings.')
9+
}
710
const llmConfigs = await window.llm.getLLMConfigs()
811
const apiConfigs = await window.llm.getLLMAPIConfigs()
912

0 commit comments

Comments
 (0)