readme and api url

This commit is contained in:
Ash
2022-12-29 14:07:52 +04:00
parent f306fd8ca5
commit 213a4f1aee
4 changed files with 16 additions and 4 deletions

View File

@@ -16,9 +16,9 @@
"tfs": 0.96, "tfs": 0.96,
"typical": 0.98, "typical": 0.98,
"top_a": 0.01, "top_a": 0.01,
"rep_pen": 1.0, "rep_pen": 1.02,
"rep_pen_slope": 0.8, "rep_pen_slope": 0.8,
"rep_pen_range": 1024.0, "rep_pen_range": 256.0,
"genamt": 90, "genamt": 90,
"max_length": 2048, "max_length": 2048,
"ikgen": 200, "ikgen": 200,

View File

@@ -19,6 +19,8 @@
//8) Сombine multiple messages into one if the text continues //8) Сombine multiple messages into one if the text continues
//9) Access for many chats //9) Access for many chats
//10) Design presets //10) Design presets
//11) Fix sended propt with json markup
//
//import {encode, decode} from "../scripts/gpt-2-3-tokenizer/mod.js"; //import {encode, decode} from "../scripts/gpt-2-3-tokenizer/mod.js";
//let text = "hello world"; //let text = "hello world";
//console.log(encode("dsfs").length); // [258, 18798, 995] //console.log(encode("dsfs").length); // [258, 18798, 995]
@@ -1193,6 +1195,14 @@
$("#api_button").css("display", 'none'); $("#api_button").css("display", 'none');
api_server = $('#api_url_text').val(); api_server = $('#api_url_text').val();
api_server = $.trim(api_server); 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(); saveSettings();
is_get_status = true; is_get_status = true;
is_api_button_press = true; is_api_button_press = true;

View File

@@ -1,11 +1,13 @@
### TavernAI is a adventure chat shell for AI language models ### TavernAI is a adventure chat shell for AI language models
<br><img src="readme/1.png" width="600" /> <br><img src="readme/1.png" width="600" />
## 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. 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. 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)<br>
### Briefly:
1. Download and Install [Node.js v19.1.0](https://nodejs.org/download/release/v19.1.0/) 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* 2. Run Start.bat or use command: *node server.js*
## Connecting to API ## Connecting to API

Binary file not shown.

Before

Width:  |  Height:  |  Size: 990 KiB

After

Width:  |  Height:  |  Size: 908 KiB