From 9ef3dea884735f6e90a4171b17f937599531a5c5 Mon Sep 17 00:00:00 2001
From: Succubyss <87207237+Succubyss@users.noreply.github.com>
Date: Tue, 14 May 2024 17:36:10 -0500
Subject: [PATCH 01/11] rule typo fix for /while example
---
public/scripts/variables.js | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/public/scripts/variables.js b/public/scripts/variables.js
index bfaaab2af..f4d753ba6 100644
--- a/public/scripts/variables.js
+++ b/public/scripts/variables.js
@@ -1158,7 +1158,7 @@ export function registerVariableCommands() {
Examples:
From 1999f607d6af32b4d46a2d888f36cc623844ce17 Mon Sep 17 00:00:00 2001
From: Cohee <18619528+Cohee1207@users.noreply.github.com>
Date: Wed, 15 May 2024 13:19:23 +0300
Subject: [PATCH 02/11] Set tainted flag metadata if a message was edited
---
public/script.js | 2 ++
1 file changed, 2 insertions(+)
diff --git a/public/script.js b/public/script.js
index 8dd9b427e..a378b52ba 100644
--- a/public/script.js
+++ b/public/script.js
@@ -6275,6 +6275,8 @@ function updateMessage(div) {
mes.extra.bias = null;
}
+ chat_metadata['tainted'] = true;
+
return { mesBlock, text, mes, bias };
}
From 87b61f7cfff19d79038ad1e292668018b7cec399 Mon Sep 17 00:00:00 2001
From: LenAnderson
Date: Wed, 15 May 2024 08:27:22 -0400
Subject: [PATCH 03/11] fix QR editor on narrow screen
---
public/scripts/extensions/quick-reply/style.css | 6 +++++-
public/scripts/extensions/quick-reply/style.less | 6 +++++-
2 files changed, 10 insertions(+), 2 deletions(-)
diff --git a/public/scripts/extensions/quick-reply/style.css b/public/scripts/extensions/quick-reply/style.css
index 1afd83ce4..d9811993d 100644
--- a/public/scripts/extensions/quick-reply/style.css
+++ b/public/scripts/extensions/quick-reply/style.css
@@ -218,11 +218,15 @@
@media screen and (max-width: 750px) {
body .dialogue_popup:has(#qr--modalEditor) .dialogue_popup_text > #qr--modalEditor {
flex-direction: column;
+ overflow: auto;
+ }
+ body .dialogue_popup:has(#qr--modalEditor) .dialogue_popup_text > #qr--modalEditor > #qr--main {
+ flex: 0 0 auto;
}
body .dialogue_popup:has(#qr--modalEditor) .dialogue_popup_text > #qr--modalEditor > #qr--main > .qr--labels {
flex-direction: column;
}
- body .dialogue_popup:has(#qr--modalEditor) .dialogue_popup_text > #qr--modalEditor > #qr--main > .qr--modal-messageContainer > #qr--modal-message {
+ body .dialogue_popup:has(#qr--modalEditor) .dialogue_popup_text > #qr--modalEditor > #qr--main > .qr--modal-messageContainer > #qr--modal-messageHolder {
min-height: 90svh;
}
}
diff --git a/public/scripts/extensions/quick-reply/style.less b/public/scripts/extensions/quick-reply/style.less
index ca4f385ba..bec986978 100644
--- a/public/scripts/extensions/quick-reply/style.less
+++ b/public/scripts/extensions/quick-reply/style.less
@@ -244,10 +244,14 @@
@media screen and (max-width: 750px) {
body .dialogue_popup:has(#qr--modalEditor) .dialogue_popup_text > #qr--modalEditor {
flex-direction: column;
+ overflow: auto;
+ > #qr--main {
+ flex: 0 0 auto;
+ }
> #qr--main > .qr--labels {
flex-direction: column;
}
- > #qr--main > .qr--modal-messageContainer > #qr--modal-message {
+ > #qr--main > .qr--modal-messageContainer > #qr--modal-messageHolder {
min-height: 90svh;
}
}
From f1a57d76a2688f7d6072553318c5affee2036a72 Mon Sep 17 00:00:00 2001
From: steve green
Date: Wed, 15 May 2024 21:27:50 +0800
Subject: [PATCH 04/11] enable `import_card_tags` by default
---
public/scripts/power-user.js | 1 +
1 file changed, 1 insertion(+)
diff --git a/public/scripts/power-user.js b/public/scripts/power-user.js
index 93186df20..540cea914 100644
--- a/public/scripts/power-user.js
+++ b/public/scripts/power-user.js
@@ -282,6 +282,7 @@ let power_user = {
forbid_external_media: true,
external_media_allowed_overrides: [],
external_media_forbidden_overrides: [],
+ import_card_tags: true,
};
let themes = [];
From 796cc3c60cd03d627f5af1e9f481e1856db3112a Mon Sep 17 00:00:00 2001
From: steve02081504
Date: Wed, 15 May 2024 21:34:09 +0800
Subject: [PATCH 05/11] add `import_tags` in list of more opt
---
public/index.html | 3 +++
public/script.js | 3 +++
2 files changed, 6 insertions(+)
diff --git a/public/index.html b/public/index.html
index 06d781af6..b0b0e4ba3 100644
--- a/public/index.html
+++ b/public/index.html
@@ -4493,6 +4493,9 @@
+
+
diff --git a/public/scripts/extensions/caption/index.js b/public/scripts/extensions/caption/index.js
index f0738e5d5..79a68e22b 100644
--- a/public/scripts/extensions/caption/index.js
+++ b/public/scripts/extensions/caption/index.js
@@ -440,8 +440,12 @@ jQuery(function () {
+
+
+
+
@@ -450,6 +454,8 @@ jQuery(function () {
+
+
diff --git a/public/scripts/openai.js b/public/scripts/openai.js
index 2e35ecae7..6e9236d8e 100644
--- a/public/scripts/openai.js
+++ b/public/scripts/openai.js
@@ -3725,7 +3725,7 @@ async function onModelChange() {
if (oai_settings.chat_completion_source == chat_completion_sources.MAKERSUITE) {
if (oai_settings.max_context_unlocked) {
$('#openai_max_context').attr('max', max_1mil);
- } else if (value === 'gemini-1.5-pro-latest') {
+ } else if (value === 'gemini-1.5-pro-latest' || value.includes('gemini-1.5-flash')) {
$('#openai_max_context').attr('max', max_1mil);
} else if (value === 'gemini-ultra' || value === 'gemini-1.0-pro-latest' || value === 'gemini-pro' || value === 'gemini-1.0-ultra-latest') {
$('#openai_max_context').attr('max', max_32k);
@@ -4285,6 +4285,8 @@ export function isImageInliningSupported() {
// gultra just isn't being offered as multimodal, thanks google.
const visionSupportedModels = [
'gpt-4-vision',
+ 'gemini-1.5-flash-latest',
+ 'gemini-1.5-flash',
'gemini-1.0-pro-vision-latest',
'gemini-1.5-pro-latest',
'gemini-pro-vision',
diff --git a/src/endpoints/backends/chat-completions.js b/src/endpoints/backends/chat-completions.js
index 5728bcf81..becfc8e07 100644
--- a/src/endpoints/backends/chat-completions.js
+++ b/src/endpoints/backends/chat-completions.js
@@ -254,7 +254,7 @@ async function sendMakerSuiteRequest(request, response) {
};
function getGeminiBody() {
- const should_use_system_prompt = model === 'gemini-1.5-pro-latest' && request.body.use_makersuite_sysprompt;
+ const should_use_system_prompt = ['gemini-1.5-flash-latest', 'gemini-1.5-pro-latest'].includes(model) && request.body.use_makersuite_sysprompt;
const prompt = convertGooglePrompt(request.body.messages, model, should_use_system_prompt, request.body.char_name, request.body.user_name);
let body = {
contents: prompt.contents,