From 706be4390d4d88e3b4898df545f6eead1997b28e Mon Sep 17 00:00:00 2001
From: Cohee <18619528+Cohee1207@users.noreply.github.com>
Date: Tue, 15 Aug 2023 14:57:11 +0300
Subject: [PATCH] Add new Claude instant model
---
public/index.html | 1 +
public/scripts/openai.js | 2 +-
2 files changed, 2 insertions(+), 1 deletion(-)
diff --git a/public/index.html b/public/index.html
index f1ec19abf..de5ba7155 100644
--- a/public/index.html
+++ b/public/index.html
@@ -1834,6 +1834,7 @@
+
diff --git a/public/scripts/openai.js b/public/scripts/openai.js
index db8f8c028..2eb07ad9a 100644
--- a/public/scripts/openai.js
+++ b/public/scripts/openai.js
@@ -2587,7 +2587,7 @@ async function onModelChange() {
if (oai_settings.max_context_unlocked) {
$('#openai_max_context').attr('max', unlocked_max);
}
- else if (value.endsWith('100k') || value.startsWith('claude-2')) {
+ else if (value.endsWith('100k') || value.startsWith('claude-2') || value === 'claude-instant-1.2') {
$('#openai_max_context').attr('max', claude_100k_max);
}
else {