getGPTWebModelString improved

This commit is contained in:
Mic 2025-09-09 23:36:00 +02:00
parent 03f2cfafab
commit 640ff4fa50

View file

@ -251,6 +251,7 @@ export function convertNewlinesToParagraphs(input) {
// 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) {
if (!model) return '';
model = model.toLowerCase().trim();
switch (model) {
case 'gpt-5':
@ -639,6 +640,7 @@ export function validateChatGPTWebCustomData(data) {
}
export function sanitizeChatGPTModelData(input) {
if(!input) return '';
return encodeURIComponent(input).toLowerCase()
}