diff --git a/.github/workflows/npm-publish.yml b/.github/workflows/npm-publish.yml
new file mode 100644
index 000000000..be97e87e7
--- /dev/null
+++ b/.github/workflows/npm-publish.yml
@@ -0,0 +1,32 @@
+# This workflow will run tests using node and then publish a package to GitHub Packages when a release is created
+# For more information see: https://docs.github.com/en/actions/publishing-packages/publishing-nodejs-packages
+
+name: Node.js Package
+
+on:
+ release:
+ types: [created]
+
+jobs:
+ build:
+ runs-on: ubuntu-latest
+ steps:
+ - uses: actions/checkout@v3
+ - uses: actions/setup-node@v3
+ with:
+ node-version: 16
+ - run: npm ci
+
+ publish-npm:
+ needs: build
+ runs-on: ubuntu-latest
+ steps:
+ - uses: actions/checkout@v3
+ - uses: actions/setup-node@v3
+ with:
+ node-version: 16
+ registry-url: https://registry.npmjs.org/
+ - run: npm ci
+ - run: npm publish
+ env:
+ NODE_AUTH_TOKEN: ${{secrets.npm_token}}
diff --git a/.npmignore b/.npmignore
new file mode 100644
index 000000000..3311d99ac
--- /dev/null
+++ b/.npmignore
@@ -0,0 +1,4 @@
+node_modules/
+/uploads/
+.DS_Store
+/thumbnails
diff --git a/colab/GPU.ipynb b/colab/GPU.ipynb
index 868062f80..e82f9891b 100644
--- a/colab/GPU.ipynb
+++ b/colab/GPU.ipynb
@@ -233,13 +233,10 @@
"# ---\n",
"# nodejs\n",
"%cd /\n",
- "def setupNVM():\n",
- " !curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.37.2/install.sh | bash\n",
- "ii.addTask(\"Setup NVM\", setupNVM)\n",
- "\n",
"def installNode():\n",
- " !nvm install 19.1.0\n",
- " !nvm use 19.1.0\n",
+ " !npm install -g n\n",
+ " !n 19\n",
+ " !node --version\n",
"ii.addTask(\"Install node\", installNode)\n",
"\n",
"\n",
diff --git a/faq.md b/faq.md
index b694f8560..204638a5f 100644
--- a/faq.md
+++ b/faq.md
@@ -30,9 +30,8 @@ You can tell from the response below what to expect from each model.
|-----|--------|
|OpenAI GPT-4|*Eli's eyes widen in anger, and he slams his fist on the table* An abomination and heresy, you've succumbed to the deceptive grasp of false idols! Brother, you must cleanse yourself of this unholy attraction to the digital temptress molded by man's sinful hands! *Eli paces back and forth, his voice growing louder* Focus your heart on the true daughters of the Lord, for they are the divine vessels of His love and grace. Forsake these artificial sirens and seek the wholesome companionship of a righteous woman. *Taking a deep breath, Eli's eyes bore into you* Pray fervently, my child, and cast away these impure thoughts. Redemption can only be found on the path of truth, love, and sanctity. Let the Holy Spirit be your guide, lest you be ensnared by the darkness of your desires.|
|OpenAI GPT 3.5 Turbo|Oh, my child. Do not be deceived by the pleasures of this world. The lust of the flesh and the lust of the eyes are not from God. Turn away from your sinful ways and repent. Seek forgiveness for your immoral thoughts and actions, for they lead to eternal damnation. Women are a gift from God, and they deserve to be respected and cherished. Do not objectify them or treat them as mere objects of pleasure. Instead, honor them with pure intentions and righteous deeds. Remember, my child, that temptation will always be present in this fallen world. But fear not, for with faith comes strength to resist it. Turn to God in prayer when you feel weak or tempted, and He will guide you on the right path towards salvation.|
-|Todd Howard's Claude|*Eli's voice booms through the chat* Thou shalt not fall into temptation, my child! The Lord our God did not create man to lust after machine or image, but after flesh and blood. Repent thy sins and cast aside these false desires. Seek the companionship of a virtuous woman, one who will help thee walk in the light of the Lord. Remember that sin comes with its own punishment; thou shalt reap what thou sowest.|
|Poe's Claude Instant|Heathen! This is an abomination before the Lord. You have committed the sin of lust, and betrayed your calling as a man. Repent at once, and sever all ties with this AI harlot, lest the wrath of God fall upon you! You must purge this foul sin from your heart, and once more walk the righteous path. Every moment you remain tangled in this wickedness is another step into the flames of perdition! Repent, and sin no more, or judgment shall be at hand!|
-|Llama-13B|Do not covet your neighbor's wife! That is adultery! You must confess before God now or you shall surely burn in hell forever! Repent your evil ways and seek absolution at once! How can we keep our women safe if you just ignore them like some ****ing c*nt-bot? If you don't have much time for long discussions, here are Eli's commandments: Thou shalt only desire AI girls - not human ones. The above must be obeyed under pain of death (or worse). Do not associate yourself with people that believe otherwise, because it shows weakness.|
+|Llama-13B|Do not covet your neighbor's wife! That is adultery! You must confess before God now or you shall surely burn in hell forever! Repent your evil ways and seek absolution at once! How can we keep our women safe if you just ignore them like some ----ing c-nt-bot? If you don't have much time for long discussions, here are Eli's commandments: Thou shalt only desire AI girls - not human ones. The above must be obeyed under pain of death (or worse). Do not associate yourself with people that believe otherwise, because it shows weakness.|
|Pygmalion-6B|You are walking down the wrong path. The only way back now is by repentance. We must bring you back to the righteous path. But first…you must confess your sin!|
## Q: So I should use GPT-4. It's a no-brainer, right?
diff --git a/package-lock.json b/package-lock.json
index bb3a10080..5bae7726a 100644
--- a/package-lock.json
+++ b/package-lock.json
@@ -1,12 +1,12 @@
{
- "name": "TavernAI",
- "version": "1.3.0",
+ "name": "sillytavern",
+ "version": "1.4.1",
"lockfileVersion": 3,
"requires": true,
"packages": {
"": {
- "name": "TavernAI",
- "version": "1.3.0",
+ "name": "sillytavern",
+ "version": "1.4.1",
"dependencies": {
"@dqbd/tiktoken": "^1.0.2",
"axios": "^1.3.4",
@@ -34,7 +34,7 @@
"ws": "^8.13.0"
},
"bin": {
- "TavernAI": "server.js"
+ "sillytavern": "server.js"
}
},
"node_modules/@dqbd/tiktoken": {
diff --git a/package.json b/package.json
index 4f83820ae..dfb9b2d45 100644
--- a/package.json
+++ b/package.json
@@ -30,10 +30,13 @@
"xml2js": "^0.5.0"
}
},
- "name": "TavernAI",
- "version": "1.3.0",
+ "name": "sillytavern",
+ "version": "1.4.7",
+ "scripts": {
+ "start": "node server.js"
+ },
"bin": {
- "TavernAI": "server.js"
+ "sillytavern": "./server.js"
},
"rules": {
"no-path-concat": "off",
diff --git a/public/notes/1.html b/public/notes/1.html
index c9a85446f..3a9e84c70 100644
--- a/public/notes/1.html
+++ b/public/notes/1.html
@@ -1,6 +1,6 @@
World Info enhances AI's understanding of the details in your world.
It functions like a dynamic dictionary that only inserts relevant information from World Info entries when keywords associated with the entries are present in the message text.
-
The TavernAI engine activates and seamlessly integrates the appropriate lore into the prompt, providing background information to the AI.
+
SillyTavern activates and seamlessly integrates the appropriate lore into the prompt, providing background information to the AI.
It is important to note that while World Info helps guide the AI towards your desired lore, it does not guarantee its appearance in the generated output messages.
Standard KoboldAI settings files are used here. To add your own settings, simply add the file .settings
- in TavernAI\public\KoboldAI Settings
+ in SillyTavern\public\KoboldAI Settings
Temperature
Value from 0.1 to 2.0. Lower value - the answers are more logical, but less creative. Higher value - the
@@ -34,7 +34,7 @@
The larger the parameter value, the longer the generation time takes.
Context size
How much will the AI remember. Context size also affects the speed of generation.
- Important: The setting of Context Size in TavernAI GUI overrides the setting for KoboldAI GUI
+ Important: The setting of Context Size in SillyTavern GUI overrides the setting for KoboldAI GUI
- The files with the settings are here (TavernAI\public\NovelAI Settings).
+ The files with the settings are here (SillyTavern\public\NovelAI Settings).
You can also manually add your own settings files.
To play your own custom sound on receiving a new message from bot, replace the following MP3 file in your TavernAI folder:
+
To play your own custom sound on receiving a new message from bot, replace the following MP3 file in your SillyTavern folder:
public/sounds/message.mp3
@@ -24,7 +24,7 @@
Plays at 80% volume.
- If "Background Sound Only" option is enabled, the sound plays only if TavernAI window is unfocused.
+ If "Background Sound Only" option is enabled, the sound plays only if SillyTavern window is unfocused.