improved isAPIKeyValue method

This commit is contained in:
mic 2025-12-29 21:31:31 +01:00
parent 39a4cab4e2
commit a7d42530fc

View file

@ -623,7 +623,7 @@ 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";
return id.endsWith('_api_key');
}
export function getConnectionType(prefsOrType, prompt, prefixOrSpecific = null) {