diff --git a/public/KoboldAI Settings/Lancer-OPT-2.7B-Erebus.settings b/public/KoboldAI Settings/Lancer-OPT-2.7B-Erebus.settings index 88390150e..a562e8bcf 100644 --- a/public/KoboldAI Settings/Lancer-OPT-2.7B-Erebus.settings +++ b/public/KoboldAI Settings/Lancer-OPT-2.7B-Erebus.settings @@ -16,9 +16,9 @@ "tfs": 0.96, "typical": 0.98, "top_a": 0.01, - "rep_pen": 1.0, + "rep_pen": 1.02, "rep_pen_slope": 0.8, - "rep_pen_range": 1024.0, + "rep_pen_range": 256.0, "genamt": 90, "max_length": 2048, "ikgen": 200, diff --git a/public/index.html b/public/index.html index 8808bfffd..5d21cf9e6 100644 --- a/public/index.html +++ b/public/index.html @@ -19,6 +19,8 @@ //8) Сombine multiple messages into one if the text continues //9) Access for many chats //10) Design presets + //11) Fix sended propt with json markup + // //import {encode, decode} from "../scripts/gpt-2-3-tokenizer/mod.js"; //let text = "hello world"; //console.log(encode("dsfs").length); // [258, 18798, 995] @@ -1193,6 +1195,14 @@ $("#api_button").css("display", 'none'); api_server = $('#api_url_text').val(); api_server = $.trim(api_server); + //console.log("1: "+api_server); + if(api_server.substr(api_server.length-1,1) == "/"){ + api_server = api_server.substr(0,api_server.length-1); + } + if(!(api_server.substr(api_server.length-3,3) == "api" || api_server.substr(api_server.length-4,4) == "api/")){ + api_server = api_server+"/api"; + } + //console.log("2: "+api_server); saveSettings(); is_get_status = true; is_api_button_press = true; diff --git a/readme.md b/readme.md index 160c18d9c..6c1c22c32 100644 --- a/readme.md +++ b/readme.md @@ -1,11 +1,13 @@ ### TavernAI is a adventure chat shell for AI language models
-## Features TavernAI helps the AI model is in the chat format and makes the answers a longer than they usually are for this format. In most cases, the shell fixes the problem when the model tries to answer for the user. Through the interface, you can easily create/edit characters, switch presets and change the background on the fly. -## Setup +## How to install +### In Detail: +* [Detail guide how to install and connect to Colab AI model step by step](https://github.com/TavernAI/TavernAI/wiki/How-to-install)
+### Briefly: 1. Download and Install [Node.js v19.1.0](https://nodejs.org/download/release/v19.1.0/) 2. Run Start.bat or use command: *node server.js* ## Connecting to API diff --git a/readme/1.png b/readme/1.png index dfad8084e..bef37c8ea 100644 Binary files a/readme/1.png and b/readme/1.png differ