Skip to content

Commit 5695966

Browse files
committed
chore(openai): update error message for empty openAiKey
Update error message thrown when the `openAiKey` is empty in the `OpenAIProvider.kt` file to provide more clarity to the user.
1 parent a4e751c commit 5695966

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/main/kotlin/cc/unitmesh/devti/llms/openai/OpenAIProvider.kt

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,8 +53,7 @@ class OpenAIProvider(val project: Project) : LLMProvider {
5353
private val service: OpenAiService
5454
get() {
5555
if (openAiKey.isEmpty()) {
56-
logger.error("openAiKey is empty")
57-
throw IllegalStateException("openAiKey is empty")
56+
throw IllegalStateException("You LLM server Key is empty")
5857
}
5958

6059
var openAiProxy = AutoDevSettingsState.getInstance().customOpenAiHost

0 commit comments

Comments
 (0)