Export resolveSecretKey

This commit is contained in:
Cohee
2025-06-17 23:37:39 +03:00
parent c228de06a8
commit ec428fd82f
+1 -1
View File
@@ -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;