#600 Add gpt-4-32k to OpenRouter selection

This commit is contained in:
Cohee
2023-06-30 11:44:23 +03:00
parent dd028a9564
commit 1d2dc19359
2 changed files with 5 additions and 1 deletions

View File

@ -1563,6 +1563,7 @@
<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-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-100k">anthropic/claude-instant-v1-100k</option>
<option value="anthropic/claude-v1">anthropic/claude-v1</option>

View File

@ -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);
}