From 67def8949c9cb764cee8c17a3dba1090ad80f191 Mon Sep 17 00:00:00 2001 From: Shiwani Gupta Date: Fri, 25 Oct 2024 04:25:42 +0530 Subject: [PATCH] Polish popup for Invalid API Key --- src/main/java/io/github/jeddict/ai/JeddictChatModel.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/io/github/jeddict/ai/JeddictChatModel.java b/src/main/java/io/github/jeddict/ai/JeddictChatModel.java index b0e57b4..a6c4d1c 100644 --- a/src/main/java/io/github/jeddict/ai/JeddictChatModel.java +++ b/src/main/java/io/github/jeddict/ai/JeddictChatModel.java @@ -138,7 +138,7 @@ private String generate(String prompt) { panel.add(apiKeyField); int option = JOptionPane.showConfirmDialog(null, panel, - "API Key Required", JOptionPane.OK_CANCEL_OPTION); + preferencesManager.getProvider().name() + " API Key Required", JOptionPane.OK_CANCEL_OPTION); if (option == JOptionPane.OK_OPTION) { preferencesManager.setApiKey(apiKeyField.getText().trim()); }