Forgor context size

bd30a318155aef52e08418786e8fbca6c54e09d4

Cohee <18619528+Cohee1207@users.noreply.github.com>

1 files changed, +2 -2Showing whitespace changes
public/scripts/openai.js+2 -2
@@ -5029,12 +5029,12 @@ async function onModelChange() {
50295029
5030 if (oai_settings.chat_completion_source == chat_completion_sources.CLAUDE) {5030 if (oai_settings.chat_completion_source == chat_completion_sources.CLAUDE) {
5031 if (oai_settings.max_context_unlocked) {5031 if (oai_settings.max_context_unlocked) {
5032 $('#openai_max_context').attr('max', max_200k);5032 $('#openai_max_context').attr('max', unlocked_max);
5033 }5033 }
5034 else if (value.startsWith('claude-sonnet-4-5')) {5034 else if (value.startsWith('claude-sonnet-4-5')) {
5035 $('#openai_max_context').attr('max', max_1mil);5035 $('#openai_max_context').attr('max', max_1mil);
5036 }5036 }
5037 else if (value == 'claude-2.1' || value.startsWith('claude-3') || value.startsWith('claude-opus') || value.startsWith('claude-sonnet')) {5037 else if (value == 'claude-2.1' || value.startsWith('claude-3') || value.startsWith('claude-opus') || value.startsWith('claude-haiku') || value.startsWith('claude-sonnet')) {
5038 $('#openai_max_context').attr('max', max_200k);5038 $('#openai_max_context').attr('max', max_200k);
5039 }5039 }
5040 else if (value.endsWith('100k') || value.startsWith('claude-2') || value === 'claude-instant-1.2') {5040 else if (value.endsWith('100k') || value.startsWith('claude-2') || value === 'claude-instant-1.2') {