From 5ccc3126957b6d47df8f7cdc440d858f3cfa9917 Mon Sep 17 00:00:00 2001 From: Mic Date: Wed, 16 Apr 2025 23:49:00 +0200 Subject: [PATCH] Refactor getGPTWebModelString function to update model conversion logic --- js/mzta-utils.js | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/js/mzta-utils.js b/js/mzta-utils.js index 02009edd..e5a846a1 100644 --- a/js/mzta-utils.js +++ b/js/mzta-utils.js @@ -175,6 +175,8 @@ export function sanitizeHtml(input) { return input.replace(/<(?!br\s*\/?)[^>]+>/gi, ''); } +// This method is used to convert the model string id used in the URL +// to the model string used in the webpage export function getGPTWebModelString(model) { model = model.toLowerCase().trim(); switch (model) { @@ -183,14 +185,6 @@ export function getGPTWebModelString(model) { return '4o'; case 'gpt-4o-mini': return '4o mini'; - case 'gpt-4': - return 'gpt-4'; - case 'o1': - return 'o1'; - case 'o3-mini': - return 'o3-mini'; - case 'o3-mini-high': - return 'o3-mini-high'; default: return model; }