From 15319c67ef6d7cbbd2342f322ed4575f9d74ef3a Mon Sep 17 00:00:00 2001 From: Achiya Elyasaf <10044875+eggsterino@users.noreply.github.com> Date: Sun, 3 Dec 2023 09:55:51 +0200 Subject: [PATCH] Added an error message when API key is not set. --- manifest.json | 2 +- scripts/content.js | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/manifest.json b/manifest.json index c047326..19c683a 100644 --- a/manifest.json +++ b/manifest.json @@ -42,5 +42,5 @@ "manifest_version": 3, "name": "LeafLLM", "homepage_url": "https://github.com/achiyae/LeafLLM", - "version": "1.2.2" + "version": "1.2.3" } diff --git a/scripts/content.js b/scripts/content.js index 991513b..0e9a444 100644 --- a/scripts/content.js +++ b/scripts/content.js @@ -181,6 +181,8 @@ chrome.runtime.onMessage.addListener( setAPIKey(openAIAPIKey) if (openAI) { handleCommand(request.command) + } else { + error('OpenAI API key is not set, LeafLLM features are disabled.') } }) } else {