From 1c52099ed6d8f964bfcc69a3571ccdb22ba10e78 Mon Sep 17 00:00:00 2001 From: Cohee <18619528+Cohee1207@users.noreply.github.com> Date: Thu, 10 Apr 2025 22:59:10 +0300 Subject: [PATCH 1/9] Add xAI as chat completion source --- public/index.html | 44 +++++++++++---- public/scripts/RossAscends-mods.js | 1 + public/scripts/openai.js | 62 +++++++++++++++++++++- public/scripts/reasoning.js | 2 + public/scripts/secrets.js | 2 + public/scripts/slash-commands.js | 1 + public/scripts/tool-calling.js | 1 + src/constants.js | 1 + src/endpoints/backends/chat-completions.js | 15 ++++++ src/endpoints/secrets.js | 1 + src/prompt-converters.js | 2 +- 11 files changed, 120 insertions(+), 12 deletions(-) diff --git a/public/index.html b/public/index.html index d17b1041a..b13f2f3cf 100644 --- a/public/index.html +++ b/public/index.html @@ -685,7 +685,7 @@ -