From a3c9d58f86d7ac04df89147933fd37a446a92a4b Mon Sep 17 00:00:00 2001 From: Cohee Date: Wed, 5 Apr 2023 21:27:31 +0300 Subject: [PATCH 1/7] Rebranding --- readme.md | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/readme.md b/readme.md index 1adbdff6f..2b3d18308 100644 --- a/readme.md +++ b/readme.md @@ -1,11 +1,11 @@ ## Silly TavernAI mod. Based on fork of TavernAI 1.2.8 -### Brought to you by @SillyLossy and @RossAscends +### Brought to you by @Cohee1207 and @RossAscends -Try on Colab (runs KoboldAI backend and TavernAI Extras server alongside): +Try on Colab (runs KoboldAI backend and TavernAI Extras server alongside): Open In Colab -https://colab.research.google.com/github/SillyLossy/TavernAI-extras/blob/main/colab/GPU.ipynb +https://colab.research.google.com/github/Cohee1207/TavernAI-extras/blob/main/colab/GPU.ipynb ## Mobile support @@ -23,13 +23,13 @@ https://rentry.org/TAI_Termux * [Oobabooga's TextGen WebUI](https://github.com/oobabooga/text-generation-webui) API connection * Soft prompts selector for KoboldAI * Prompt generation formatting tweaking -* Extensibility support via [SillyLossy's TAI-extras](https://github.com/SillyLossy/TavernAI-extras) plugins +* Extensibility support via [SillyLossy's TAI-extras](https://github.com/Cohee1207/TavernAI-extras) plugins * Character emotional expressions * Auto-Summary of the chat history * Sending images to chat, and the AI interpreting the content. ## UI Extensions 🚀 -| Name | Description | Required Extra Modules | Screenshot | +| Name | Description | Required Extra Modules | Screenshot | | ---------------- | ---------------------------------| ---------------------------- | ---------- | | Image Captioning | Send a cute picture to your bot!

Picture select option will appear beside "Message send" button. | `caption` | | | Character Expressions | See your character reacting to your messages!

**You need to provide your own character images!**

1. Create a folder in TavernAI called `public/characters/`, where `` is a name of your character.
2. For base emotion classification model, put six PNG files there with the following names: `joy.png`, `anger.png`, `fear.png`, `love.png`, `sadness.png`, `surprise.png`. Other models may provide another options.
3. Images only display in desktop mode. | `classify` | image | @@ -109,7 +109,7 @@ Contact us on Discord: Cohee#1207 or RossAscends#1779 ## License and credits * TAI Base by Humi: Unknown license -* SillyLossy's TAI mod: Public domain +* Cohee's TAI mod: Public domain * RossAscends' additions: Public domain * Portions of CncAnon's TavernAITurbo mod: Unknown license * Thanks oobabooga for compiling presets for TextGen From e489061b6fb648474fbd904924a8243bdfd51285 Mon Sep 17 00:00:00 2001 From: Cohee Date: Wed, 5 Apr 2023 22:49:54 +0300 Subject: [PATCH 2/7] Update readme.md --- readme.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/readme.md b/readme.md index 2b3d18308..ef5d12179 100644 --- a/readme.md +++ b/readme.md @@ -34,7 +34,7 @@ https://rentry.org/TAI_Termux | Image Captioning | Send a cute picture to your bot!

Picture select option will appear beside "Message send" button. | `caption` | | | Character Expressions | See your character reacting to your messages!

**You need to provide your own character images!**

1. Create a folder in TavernAI called `public/characters/`, where `` is a name of your character.
2. For base emotion classification model, put six PNG files there with the following names: `joy.png`, `anger.png`, `fear.png`, `love.png`, `sadness.png`, `surprise.png`. Other models may provide another options.
3. Images only display in desktop mode. | `classify` | image | | Memory | Chatbot long-term memory simulation using automatic message context summarization. | `summarize` | image | -| Floating Prompt | Adds a string to your scenario after certain amount of messages you send. Usage ideas: reinforce certain events during roleplay. Thanks @Aliážµ#2222 for suggesting me that! | None | | +| Author's Note | Adds a string to your scenario after certain amount of messages you send. Usage ideas: reinforce certain events during roleplay. Thanks @Aliážµ#2222 for suggesting me that! | None | | | D&D Dice | A set of 7 classic D&D dice for all your dice rolling needs.

*I used to roll the dice.
Feel the fear in my enemies' eyes* | None | image | ...and... From 024c2f73de2a9d0818003da92c1b348530beb2ca Mon Sep 17 00:00:00 2001 From: SillyLossy Date: Thu, 6 Apr 2023 00:05:16 +0300 Subject: [PATCH 3/7] Colab google drive fix (supposed) --- server.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server.js b/server.js index 61ec140aa..85a69a190 100644 --- a/server.js +++ b/server.js @@ -167,7 +167,7 @@ app.use(function (req, res, next) { //Security app.use((req, res, next) => { if (req.url.startsWith('/characters/') && is_colab && process.env.googledrive == 2) { - const filePath = path.join(charactersPath, decodeURIComponent(req.url.substr('/characters'.length))); + const filePath = path.join(__dirname, charactersPath, decodeURIComponent(req.url.substr('/characters'.length))); fs.access(filePath, fs.constants.R_OK, (err) => { if (!err) { res.sendFile(filePath); From db58aae28ea31385dcfcf3d699a9bf713c198ed4 Mon Sep 17 00:00:00 2001 From: Cohee Date: Thu, 6 Apr 2023 00:14:23 +0300 Subject: [PATCH 4/7] Update readme.md --- readme.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/readme.md b/readme.md index ef5d12179..dfd8b18cf 100644 --- a/readme.md +++ b/readme.md @@ -67,7 +67,7 @@ https://rentry.org/TAI_Termux *NOTE: This branch is intended for local install purposes, and has not been tested on a colab or other cloud notebook service.* - 1. install [NodeJS](nodejs.org) + 1. install [NodeJS](https://nodejs.org/en) 2. download the zip from this github repo 3. unzip it into a folder of your choice 4. run start.bat via double clicking or in a command line. From 0c55bc6a092c7481a285a9c31b4894428bff12b2 Mon Sep 17 00:00:00 2001 From: SillyLossy Date: Thu, 6 Apr 2023 00:20:47 +0300 Subject: [PATCH 5/7] Another colab fix --- server.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/server.js b/server.js index 85a69a190..55e01c316 100644 --- a/server.js +++ b/server.js @@ -168,9 +168,11 @@ app.use((req, res, next) => { if (req.url.startsWith('/characters/') && is_colab && process.env.googledrive == 2) { const filePath = path.join(__dirname, charactersPath, decodeURIComponent(req.url.substr('/characters'.length))); + console.log('req.url: ' + req.url); + console.log(filePath); fs.access(filePath, fs.constants.R_OK, (err) => { if (!err) { - res.sendFile(filePath); + res.sendFile(filePath, { root: __dirname }); } else { res.send('Character not found: ' + filePath); //next(); From 1af8fa8ec6c9fea25e1f45190ef08b25f7dab321 Mon Sep 17 00:00:00 2001 From: SillyLossy Date: Thu, 6 Apr 2023 01:22:01 +0300 Subject: [PATCH 6/7] FML, it's colab again --- server.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server.js b/server.js index 55e01c316..a75767a88 100644 --- a/server.js +++ b/server.js @@ -167,7 +167,7 @@ app.use(function (req, res, next) { //Security app.use((req, res, next) => { if (req.url.startsWith('/characters/') && is_colab && process.env.googledrive == 2) { - const filePath = path.join(__dirname, charactersPath, decodeURIComponent(req.url.substr('/characters'.length))); + const filePath = path.join(charactersPath, decodeURIComponent(req.url.substr('/characters'.length))); console.log('req.url: ' + req.url); console.log(filePath); fs.access(filePath, fs.constants.R_OK, (err) => { From ed2cd1ab23afd96fa2d03c8e0e6529eb850658bd Mon Sep 17 00:00:00 2001 From: Cohee Date: Thu, 6 Apr 2023 10:37:42 +0300 Subject: [PATCH 7/7] Update readme.md --- readme.md | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/readme.md b/readme.md index dfd8b18cf..91bbd7bbd 100644 --- a/readme.md +++ b/readme.md @@ -1,4 +1,4 @@ -## Silly TavernAI mod. Based on fork of TavernAI 1.2.8 +# SillyTavern. Based on fork of TavernAI 1.2.8 ### Brought to you by @Cohee1207 and @RossAscends Try on Colab (runs KoboldAI backend and TavernAI Extras server alongside): @@ -7,6 +7,17 @@ Try on Colab (runs KoboldAI backend and TavernAI Extras server alongside): **This fork can be ran natively on Android phones using Termux. Please refer to this guide by ArroganceComplex#2659:**