fix older model naming for the new api
This commit is contained in:
parent
ce7fbd5ef8
commit
7bb8741cfa
|
@ -2348,27 +2348,20 @@
|
|||
<h4 data-i18n="Claude Model">Claude Model</h4>
|
||||
<select id="model_claude_select">
|
||||
<optgroup label="Latest">
|
||||
<option value="claude-3-opus">claude-3-opus</option>
|
||||
<option value="claude-3-sonnet">claude-3-sonnet</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-2">claude-2</option>
|
||||
<option value="claude-v1">claude-v1</option>
|
||||
<option value="claude-v1-100k">claude-v1-100k</option>
|
||||
<option value="claude-instant-v1">claude-instant-v1</option>
|
||||
<option value="claude-instant-v1-100k">claude-instant-v1-100k</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-sonnet-20240229">claude-3-sonnet-20240229</option>
|
||||
<option value="claude-2.1">claude-2.1</option>
|
||||
<option value="claude-2.0">claude-2.0</option>
|
||||
<option value="claude-v1.3">claude-v1.3</option>
|
||||
<option value="claude-v1.3-100k">claude-v1.3-100k</option>
|
||||
<option value="claude-v1.2">claude-v1.2</option>
|
||||
<option value="claude-v1.0">claude-v1.0</option>
|
||||
<option value="claude-1.3">claude-1.3</option>
|
||||
<option value="claude-instant-1.2">claude-instant-1.2</option>
|
||||
<option value="claude-instant-v1.1">claude-instant-v1.1</option>
|
||||
<option value="claude-instant-v1.1-100k">claude-instant-v1.1-100k</option>
|
||||
<option value="claude-instant-v1.0">claude-instant-v1.0</option>
|
||||
<option value="claude-instant-1.1">claude-instant-1.1</option>
|
||||
<option value="claude-instant-1.1-100k">claude-instant-1.1-100k</option>
|
||||
</optgroup>
|
||||
</select>
|
||||
</div>
|
||||
|
|
|
@ -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')) {
|
||||
|
|
Loading…
Reference in New Issue