From 57b81be9ce28f92cba7e50dc238204f1e48c889d Mon Sep 17 00:00:00 2001 From: Cohee <18619528+Cohee1207@users.noreply.github.com> Date: Thu, 22 May 2025 23:03:04 +0300 Subject: [PATCH] Caption - allow custom endpoint for xAI --- public/scripts/extensions/caption/index.js | 2 +- .../scripts/extensions/caption/settings.html | 2 +- public/scripts/extensions/shared.js | 4 ++-- src/endpoints/openai.js | 20 +++++++++---------- 4 files changed, 14 insertions(+), 14 deletions(-) diff --git a/public/scripts/extensions/caption/index.js b/public/scripts/extensions/caption/index.js index f29455af6..8e499452e 100644 --- a/public/scripts/extensions/caption/index.js +++ b/public/scripts/extensions/caption/index.js @@ -416,6 +416,7 @@ jQuery(async function () { 'google': SECRET_KEYS.MAKERSUITE, 'vertexai': SECRET_KEYS.VERTEXAI, 'anthropic': SECRET_KEYS.CLAUDE, + 'xai': SECRET_KEYS.XAI, }; if (reverseProxyApis[api]) { @@ -429,7 +430,6 @@ jQuery(async function () { 'zerooneai': SECRET_KEYS.ZEROONEAI, 'groq': SECRET_KEYS.GROQ, 'cohere': SECRET_KEYS.COHERE, - 'xai': SECRET_KEYS.XAI, }; if (chatCompletionApis[api] && secret_state[chatCompletionApis[api]]) { diff --git a/public/scripts/extensions/caption/settings.html b/public/scripts/extensions/caption/settings.html index 79ddd5d81..9eb60ba5b 100644 --- a/public/scripts/extensions/caption/settings.html +++ b/public/scripts/extensions/caption/settings.html @@ -181,7 +181,7 @@
The model must be downloaded first! Do it with the ollama pull command or click here.
-