| 5029 | | 5029 | |
| 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') { |