fix older model naming for the new api

This commit is contained in:
based
2024-03-05 05:50:29 +10:00
parent ce7fbd5ef8
commit 7bb8741cfa
2 changed files with 13 additions and 13 deletions

View File

@ -3330,8 +3330,15 @@ async function onModelChange() {
let value = String($(this).val() || '');
if ($(this).is('#model_claude_select')) {
if (value.includes('-v')) {
value = value.replace('-v', '-');
} else if (value === '') {
value = default_settings.claude_model;
}
console.log('Claude model changed to', value);
oai_settings.claude_model = value;
$('#model_claude_select').val(oai_settings.claude_model);
}
if ($(this).is('#model_windowai_select')) {