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:
@ -1563,6 +1563,7 @@
|
|||||||
<option value="openai/gpt-3.5-turbo">openai/gpt-3.5-turbo</option>
|
<option value="openai/gpt-3.5-turbo">openai/gpt-3.5-turbo</option>
|
||||||
<option value="openai/gpt-3.5-turbo-16k">openai/gpt-3.5-turbo-16k</option>
|
<option value="openai/gpt-3.5-turbo-16k">openai/gpt-3.5-turbo-16k</option>
|
||||||
<option value="openai/gpt-4">openai/gpt-4</option>
|
<option value="openai/gpt-4">openai/gpt-4</option>
|
||||||
|
<option value="openai/gpt-4-32k">openai/gpt-4-32k</option>
|
||||||
<option value="anthropic/claude-instant-v1">anthropic/claude-instant-v1</option>
|
<option value="anthropic/claude-instant-v1">anthropic/claude-instant-v1</option>
|
||||||
<option value="anthropic/claude-instant-v1-100k">anthropic/claude-instant-v1-100k</option>
|
<option value="anthropic/claude-instant-v1-100k">anthropic/claude-instant-v1-100k</option>
|
||||||
<option value="anthropic/claude-v1">anthropic/claude-v1</option>
|
<option value="anthropic/claude-v1">anthropic/claude-v1</option>
|
||||||
|
@ -1611,7 +1611,7 @@ async function onModelChange() {
|
|||||||
|
|
||||||
if (oai_settings.chat_completion_source == chat_completion_sources.WINDOWAI) {
|
if (oai_settings.chat_completion_source == chat_completion_sources.WINDOWAI) {
|
||||||
if (value == '' && 'ai' in window) {
|
if (value == '' && 'ai' in window) {
|
||||||
value = await window.ai.getCurrentModel();
|
value = (await window.ai.getCurrentModel()) || '';
|
||||||
}
|
}
|
||||||
|
|
||||||
if (oai_settings.max_context_unlocked) {
|
if (oai_settings.max_context_unlocked) {
|
||||||
@ -1629,6 +1629,9 @@ async function onModelChange() {
|
|||||||
else if (value.includes('gpt-3.5')) {
|
else if (value.includes('gpt-3.5')) {
|
||||||
$('#openai_max_context').attr('max', gpt3_max);
|
$('#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')) {
|
else if (value.includes('gpt-4')) {
|
||||||
$('#openai_max_context').attr('max', gpt4_max);
|
$('#openai_max_context').attr('max', gpt4_max);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user