he forgor oop

This commit is contained in:
based 2024-03-05 15:33:07 +10:00
parent 8d9175f3f2
commit de0e0dad27
2 changed files with 5 additions and 11 deletions

View File

@ -2347,13 +2347,7 @@
<div> <div>
<h4 data-i18n="Claude Model">Claude Model</h4> <h4 data-i18n="Claude Model">Claude Model</h4>
<select id="model_claude_select"> <select id="model_claude_select">
<optgroup label="Latest"> <optgroup label="Versions">
<option value="claude-3-opus-20240229">claude-3-opus-20240229</option>
<option value="claude-3-sonnet-20240229">claude-3-sonnet-20240229</option>
<option value="claude-2">claude-2</option>
<option value="claude-1.3">claude-1.3</option>
</optgroup>
<optgroup label="Sub-versions">
<option value="claude-3-opus-20240229">claude-3-opus-20240229</option> <option value="claude-3-opus-20240229">claude-3-opus-20240229</option>
<option value="claude-3-sonnet-20240229">claude-3-sonnet-20240229</option> <option value="claude-3-sonnet-20240229">claude-3-sonnet-20240229</option>
<option value="claude-2.1">claude-2.1</option> <option value="claude-2.1">claude-2.1</option>

View File

@ -213,7 +213,7 @@ const default_settings = {
scenario_format: default_scenario_format, scenario_format: default_scenario_format,
personality_format: default_personality_format, personality_format: default_personality_format,
openai_model: 'gpt-3.5-turbo', openai_model: 'gpt-3.5-turbo',
claude_model: 'claude-2', claude_model: 'claude-2.1',
google_model: 'gemini-pro', google_model: 'gemini-pro',
ai21_model: 'j2-ultra', ai21_model: 'j2-ultra',
mistralai_model: 'mistral-medium-latest', mistralai_model: 'mistral-medium-latest',
@ -282,7 +282,7 @@ const oai_settings = {
scenario_format: default_scenario_format, scenario_format: default_scenario_format,
personality_format: default_personality_format, personality_format: default_personality_format,
openai_model: 'gpt-3.5-turbo', openai_model: 'gpt-3.5-turbo',
claude_model: 'claude-2', claude_model: 'claude-2.1',
google_model: 'gemini-pro', google_model: 'gemini-pro',
ai21_model: 'j2-ultra', ai21_model: 'j2-ultra',
mistralai_model: 'mistral-medium-latest', mistralai_model: 'mistral-medium-latest',
@ -3332,7 +3332,7 @@ async function onModelChange() {
if ($(this).is('#model_claude_select')) { if ($(this).is('#model_claude_select')) {
if (value.includes('-v')) { if (value.includes('-v')) {
value = value.replace('-v', '-'); value = value.replace('-v', '-');
} else if (value === '') { } else if (value === '' || value === 'claude-2') {
value = default_settings.claude_model; value = default_settings.claude_model;
} }
console.log('Claude model changed to', value); console.log('Claude model changed to', value);
@ -3446,7 +3446,7 @@ async function onModelChange() {
if (oai_settings.max_context_unlocked) { if (oai_settings.max_context_unlocked) {
$('#openai_max_context').attr('max', max_200k); $('#openai_max_context').attr('max', max_200k);
} }
else if (value == 'claude-2.1' || value == 'claude-2' || value.startsWith('claude-3')) { else if (value == 'claude-2.1' || value.startsWith('claude-3')) {
$('#openai_max_context').attr('max', max_200k); $('#openai_max_context').attr('max', max_200k);
} }
else if (value.endsWith('100k') || value.startsWith('claude-2') || value === 'claude-instant-1.2') { else if (value.endsWith('100k') || value.startsWith('claude-2') || value === 'claude-instant-1.2') {