Hide "Summarize now" for extras source
This commit is contained in:
parent
16795dd5cc
commit
26e822046e
|
@ -322,6 +322,11 @@ async function onChatEvent() {
|
||||||
}
|
}
|
||||||
|
|
||||||
async function forceSummarizeChat() {
|
async function forceSummarizeChat() {
|
||||||
|
if (extension_settings.memory.source === summary_sources.extras) {
|
||||||
|
toastr.warning('Force summarization is not supported for Extras API');
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
const context = getContext();
|
const context = getContext();
|
||||||
|
|
||||||
const skipWIAN = extension_settings.memory.SkipWIAN;
|
const skipWIAN = extension_settings.memory.SkipWIAN;
|
||||||
|
@ -664,7 +669,7 @@ jQuery(function () {
|
||||||
|
|
||||||
<textarea id="memory_contents" class="text_pole textarea_compact" rows="6" placeholder="Summary will be generated here..."></textarea>
|
<textarea id="memory_contents" class="text_pole textarea_compact" rows="6" placeholder="Summary will be generated here..."></textarea>
|
||||||
<div class="memory_contents_controls">
|
<div class="memory_contents_controls">
|
||||||
<div id="memory_force_summarize" class="menu_button menu_button_icon">
|
<div id="memory_force_summarize" data-source="main" class="menu_button menu_button_icon">
|
||||||
<i class="fa-solid fa-database"></i>
|
<i class="fa-solid fa-database"></i>
|
||||||
<span>Summarize now</span>
|
<span>Summarize now</span>
|
||||||
</div>
|
</div>
|
||||||
|
|
Loading…
Reference in New Issue