diff --git a/public/index.html b/public/index.html
index e05c6e526..d3b672764 100644
--- a/public/index.html
+++ b/public/index.html
@@ -2845,6 +2845,7 @@
+
diff --git a/public/scripts/openai.js b/public/scripts/openai.js
index 53bcffd91..5cc74c242 100644
--- a/public/scripts/openai.js
+++ b/public/scripts/openai.js
@@ -4149,6 +4149,8 @@ async function onModelChange() {
$('#openai_max_context').attr('max', unlocked_max);
} else if (oai_settings.mistralai_model.includes('codestral-mamba')) {
$('#openai_max_context').attr('max', max_256k);
+ } else if (['mistral-large-2407', 'mistral-large-latest'].includes(oai_settings.mistralai_model)) {
+ $('#openai_max_context').attr('max', max_128k);
} else if (oai_settings.mistralai_model.includes('mistral-nemo')) {
$('#openai_max_context').attr('max', max_128k);
} else if (oai_settings.mistralai_model.includes('mixtral-8x22b')) {