From 9a48c8fe143e151737d736601b3c69b182b6195e Mon Sep 17 00:00:00 2001 From: Mic Date: Wed, 30 Apr 2025 00:19:00 +0200 Subject: [PATCH] using sanitizeChatGPTModelData on all data --- mzta-background.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mzta-background.js b/mzta-background.js index 50272542..78a27397 100644 --- a/mzta-background.js +++ b/mzta-background.js @@ -334,7 +334,7 @@ async function openChatGPT(promptText, action, curr_tabId, prompt_name = '', do_ let rand_call_id = '_chatgptweb_' + generateCallID(); let call_opt = ''; - let _custom_model = (prompt_info.chatgpt_web_model != '' ? prompt_info.chatgpt_web_model : sanitizeChatGPTModelData(prefs.chatgpt_web_model)); + let _custom_model = sanitizeChatGPTModelData(prompt_info.chatgpt_web_model != '' ? prompt_info.chatgpt_web_model : prefs.chatgpt_web_model); if(prefs.chatgpt_web_tempchat){ call_opt += '&temporary-chat=true';