Export resolveSecretKey

ec428fd82f0ac3fd2ddd02f1c795fa2ef7e2d44f

Cohee <18619528+Cohee1207@users.noreply.github.com>

1 files changed, +1 -1Showing whitespace changes
public/scripts/secrets.js+1 -1
@@ -150,7 +150,7 @@ const getLabel = () => moment().format('L LT');
150 * Resolves the secret key based on the selected API, chat completion source, and text completion type.150 * Resolves the secret key based on the selected API, chat completion source, and text completion type.
151 * @returns {string|null} The secret key corresponding to the selected API, or null if no key is found.151 * @returns {string|null} The secret key corresponding to the selected API, or null if no key is found.
152 */152 */
153function resolveSecretKey() {153export function resolveSecretKey() {
154 const { mainApi, chatCompletionSettings, textCompletionSettings } = SillyTavern.getContext();154 const { mainApi, chatCompletionSettings, textCompletionSettings } = SillyTavern.getContext();
155 const chatCompletionSource = chatCompletionSettings.chat_completion_source;155 const chatCompletionSource = chatCompletionSettings.chat_completion_source;
156 const textCompletionType = textCompletionSettings.type;156 const textCompletionType = textCompletionSettings.type;