From e49da60bda339bd2b5d51fdc7b032de0f1977e1f Mon Sep 17 00:00:00 2001
From: Cohee <18619528+Cohee1207@users.noreply.github.com>
Date: Wed, 24 Jul 2024 20:19:57 +0300
Subject: [PATCH] New mistral large model
---
public/index.html | 1 +
public/scripts/openai.js | 2 ++
2 files changed, 3 insertions(+)
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')) {