From ec428fd82f0ac3fd2ddd02f1c795fa2ef7e2d44f Mon Sep 17 00:00:00 2001 From: Cohee <18619528+Cohee1207@users.noreply.github.com> Date: Tue, 17 Jun 2025 23:37:39 +0300 Subject: [PATCH] Export resolveSecretKey --- public/scripts/secrets.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/public/scripts/secrets.js b/public/scripts/secrets.js index 8dac8b6da..47ffcfdbe 100644 --- a/public/scripts/secrets.js +++ b/public/scripts/secrets.js @@ -150,7 +150,7 @@ const getLabel = () => moment().format('L LT'); * Resolves the secret key based on the selected API, chat completion source, and text completion type. * @returns {string|null} The secret key corresponding to the selected API, or null if no key is found. */ -function resolveSecretKey() { +export function resolveSecretKey() { const { mainApi, chatCompletionSettings, textCompletionSettings } = SillyTavern.getContext(); const chatCompletionSource = chatCompletionSettings.chat_completion_source; const textCompletionType = textCompletionSettings.type;