getConnectionType now has a use_promptspecific_api = true third parameter
This commit is contained in:
parent
ef57eb6499
commit
c55985d076
1 changed files with 4 additions and 1 deletions
|
|
@ -605,7 +605,10 @@ export function isAPIKeyValue(id){
|
|||
return id=="chatgpt_api_key" || id=="openai_comp_api_key" || id=="google_gemini_api_key" || id=="anthropic_api_key";
|
||||
}
|
||||
|
||||
export function getConnectionType(conntype, prompt) {
|
||||
export function getConnectionType(conntype, prompt, use_promptspecific_api = true) {
|
||||
if(!use_promptspecific_api) {
|
||||
return conntype;
|
||||
}
|
||||
console.log(">>>>>>>>>>> getConnectionType conntype: " + conntype + " prompt: " + JSON.stringify(prompt));
|
||||
if (prompt?.api != null && prompt.api !== '') {
|
||||
return prompt.api;
|
||||
|
|
|
|||
Loading…
Reference in a new issue