From 482bea292a0880999f68dee8510a7508745c0d49 Mon Sep 17 00:00:00 2001 From: deffcolony <61471128+deffcolony@users.noreply.github.com> Date: Tue, 2 Jan 2024 17:41:41 +0100 Subject: [PATCH 1/4] New screenshots --- .github/readme.md | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/readme.md b/.github/readme.md index 8727cb69c..f3ddcc7c2 100644 --- a/.github/readme.md +++ b/.github/readme.md @@ -282,8 +282,9 @@ You can find them archived here: ## Screenshots -image -image +image +image + ## License and credits From 7104daf7f092735331d17f5d2e62e211c110c0c0 Mon Sep 17 00:00:00 2001 From: RossAscends <124905043+RossAscends@users.noreply.github.com> Date: Mon, 8 Jan 2024 08:05:25 +0900 Subject: [PATCH 2/4] Update readme.md with discord permalink --- .github/readme.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/readme.md b/.github/readme.md index f3ddcc7c2..cb502ae43 100644 --- a/.github/readme.md +++ b/.github/readme.md @@ -51,7 +51,7 @@ Since Tavern is only a user interface, it has tiny hardware requirements, it wil Get support, share favorite characters and prompts: -### [Join](https://discord.gg/RZdyAEUPvj) +### [Join](https://discord.gg/sillytavern) *** From ce4c1b8d01de84a44095e85cb144534cd534e8bb Mon Sep 17 00:00:00 2001 From: Cohee <18619528+Cohee1207@users.noreply.github.com> Date: Thu, 11 Jan 2024 15:59:00 +0200 Subject: [PATCH 3/4] MistralAI monkey patch --- src/endpoints/backends/chat-completions.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/endpoints/backends/chat-completions.js b/src/endpoints/backends/chat-completions.js index 712ed4485..9a5672f8f 100644 --- a/src/endpoints/backends/chat-completions.js +++ b/src/endpoints/backends/chat-completions.js @@ -478,7 +478,7 @@ async function sendMistralAIRequest(request, response) { 'top_p': request.body.top_p, 'max_tokens': request.body.max_tokens, 'stream': request.body.stream, - 'safe_mode': request.body.safe_mode, + //'safe_mode': request.body.safe_mode, 'random_seed': request.body.seed === -1 ? undefined : request.body.seed, }; From cd88702e33c6cb58e844a47e2fc916f5237adc3a Mon Sep 17 00:00:00 2001 From: Cohee <18619528+Cohee1207@users.noreply.github.com> Date: Fri, 12 Jan 2024 17:40:29 +0200 Subject: [PATCH 4/4] Mistral API being weird, part 2 --- src/endpoints/backends/chat-completions.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/endpoints/backends/chat-completions.js b/src/endpoints/backends/chat-completions.js index 9a5672f8f..5f6166e52 100644 --- a/src/endpoints/backends/chat-completions.js +++ b/src/endpoints/backends/chat-completions.js @@ -540,6 +540,7 @@ router.post('/status', jsonParser, async function (request, response_getstatus_o } else if (request.body.chat_completion_source === CHAT_COMPLETION_SOURCES.MISTRALAI) { api_url = 'https://api.mistral.ai/v1'; api_key_openai = readSecret(SECRET_KEYS.MISTRALAI); + headers = { 'Content-Length': '0' }; // WTF? } else if (request.body.chat_completion_source === CHAT_COMPLETION_SOURCES.CUSTOM) { api_url = request.body.custom_url; api_key_openai = readSecret(SECRET_KEYS.CUSTOM);