isAPIKeyValue method added

This commit is contained in:
Mic 2025-09-02 22:50:00 +02:00
parent 0ec19550c0
commit c15fe8e85f

View file

@ -586,6 +586,10 @@ export function extractJsonObject(inputString) {
}
}
export function isAPIKeyValue(id){
return id=="chatgpt_api_key" || id=="openai_comp_api_key" || id=="google_gemini_api_key" || id=="anthropic_api_key";
}
export async function checkSparksPresence() {
try {
let sparks_current = await browser.runtime.sendMessage('thunderai-sparks@micz.it',{action: "checkPresence"});