mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2025-06-05 21:59:27 +02:00
#600 Add gpt-4-32k to OpenRouter selection
This commit is contained in:
@ -1611,7 +1611,7 @@ async function onModelChange() {
|
||||
|
||||
if (oai_settings.chat_completion_source == chat_completion_sources.WINDOWAI) {
|
||||
if (value == '' && 'ai' in window) {
|
||||
value = await window.ai.getCurrentModel();
|
||||
value = (await window.ai.getCurrentModel()) || '';
|
||||
}
|
||||
|
||||
if (oai_settings.max_context_unlocked) {
|
||||
@ -1629,6 +1629,9 @@ async function onModelChange() {
|
||||
else if (value.includes('gpt-3.5')) {
|
||||
$('#openai_max_context').attr('max', gpt3_max);
|
||||
}
|
||||
else if (value.includes('gpt-4-32k')) {
|
||||
$('#openai_max_context').attr('max', gpt4_32k_max);
|
||||
}
|
||||
else if (value.includes('gpt-4')) {
|
||||
$('#openai_max_context').attr('max', gpt4_max);
|
||||
}
|
||||
|
Reference in New Issue
Block a user