From c55985d076127a29352d18f1dff5781bc4e69ab3 Mon Sep 17 00:00:00 2001 From: Mic Date: Sun, 7 Sep 2025 20:05:00 +0200 Subject: [PATCH] getConnectionType now has a use_promptspecific_api = true third parameter --- js/mzta-utils.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/js/mzta-utils.js b/js/mzta-utils.js index 66fa50be..00dab231 100644 --- a/js/mzta-utils.js +++ b/js/mzta-utils.js @@ -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;