improved isAPIKeyValue method
This commit is contained in:
parent
39a4cab4e2
commit
a7d42530fc
1 changed files with 1 additions and 1 deletions
|
|
@ -623,7 +623,7 @@ export function extractJsonObject(inputString) {
|
||||||
}
|
}
|
||||||
|
|
||||||
export function isAPIKeyValue(id){
|
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) {
|
export function getConnectionType(prefsOrType, prompt, prefixOrSpecific = null) {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue