Skip to content

Commit

Permalink
Merge pull request #50 from jeddict/dev
Browse files Browse the repository at this point in the history
Polish popup for Invalid API Key
  • Loading branch information
jShiwaniGupta authored Oct 24, 2024
2 parents 097be3b + 67def89 commit fb3362f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/io/github/jeddict/ai/JeddictChatModel.java
Original file line number Diff line number Diff line change
Expand Up @@ -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());
}
Expand Down

0 comments on commit fb3362f

Please sign in to comment.