Merge branch 'main' into dev

This commit is contained in:
SillyLossy
2023-06-01 10:52:34 +03:00
5 changed files with 7 additions and 7 deletions

View File

@ -23,7 +23,7 @@ COPY . ./
# Copy default chats, characters and user avatars to <folder>.default folder
RUN \
IFS="," RESOURCES="characters,chats,groups,group chats,User Avatars,settings.json" && \
IFS="," RESOURCES="characters,chats,groups,group chats,User Avatars,worlds,settings.json" && \
\
echo "*** Store default $RESOURCES in <folder>.default ***" && \
for R in $RESOURCES; do mv "public/$R" "public/$R.default"; done && \

View File

@ -4,7 +4,7 @@ services:
build: ..
container_name: sillytavern
hostname: sillytavern
image: cohee1207/sillytavern:latest
image: sillytavern/sillytavern:latest
ports:
- "8000:8000"
volumes:

View File

@ -503,7 +503,7 @@ jQuery(async () => {
<span>Purge Chat from the DB</span>
</div>
</div>
<small><i>Since ChromaDB state is not persisted to disk by default, you'll need to inject text data every time the Extras API server is restarted.</i></small>
<small><i>Local ChromaDB now persists to disk by default. The default folder is .chroma_db, and you can set a different folder with the --chroma-folder argument. If you are using the Extras Colab notebook, you will need to inject the text data every time the Extras API server is restarted.</i></small>
</div>
<form><input id="chromadb_inject_file" type="file" accept="text/plain" hidden></form>
<form><input id="chromadb_import_file" type="file" accept="application/json" hidden></form>

View File

@ -516,6 +516,8 @@ async function generateGroupWrapper(by_auto_mode, type = null, params = {}) {
setCharacterId(chId);
setCharacterName(characters[chId].name)
Generate(generateType, { automatic_trigger: by_auto_mode, ...(params || {}) });
if (type !== "swipe" && type !== "impersonate" && !isMultigenEnabled() && !isStreamingEnabled()) {
// update indicator and scroll down
typingIndicator
@ -527,8 +529,6 @@ async function generateGroupWrapper(by_auto_mode, type = null, params = {}) {
});
}
Generate(generateType, { automatic_trigger: by_auto_mode, ...(params || {}) });
// TODO: This is awful. Refactor this
while (true) {
deactivateSendButtons();

View File

@ -162,7 +162,7 @@ export function saveCaretPosition(element) {
end: range.endOffset
};
console.log('Caret saved', position);
console.debug('Caret saved', position);
return position;
}
@ -174,7 +174,7 @@ export function restoreCaretPosition(element, position) {
return;
}
console.log('Caret restored', position);
console.debug('Caret restored', position);
// Create a new range object
const range = new Range();