Added an error message when API key is not set.
This commit is contained in:
@@ -42,5 +42,5 @@
|
|||||||
"manifest_version": 3,
|
"manifest_version": 3,
|
||||||
"name": "LeafLLM",
|
"name": "LeafLLM",
|
||||||
"homepage_url": "https://github.com/achiyae/LeafLLM",
|
"homepage_url": "https://github.com/achiyae/LeafLLM",
|
||||||
"version": "1.2.2"
|
"version": "1.2.3"
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -181,6 +181,8 @@ chrome.runtime.onMessage.addListener(
|
|||||||
setAPIKey(openAIAPIKey)
|
setAPIKey(openAIAPIKey)
|
||||||
if (openAI) {
|
if (openAI) {
|
||||||
handleCommand(request.command)
|
handleCommand(request.command)
|
||||||
|
} else {
|
||||||
|
error('OpenAI API key is not set, LeafLLM features are disabled.')
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
Reference in New Issue
Block a user