[skip ci] Lint fix

This commit is contained in:
Cohee 2024-02-07 19:28:34 +02:00
parent b244a1c301
commit c3129da879
8 changed files with 9 additions and 9 deletions

View File

@ -1132,7 +1132,7 @@ export function initRossMods() {
.not('#right-nav-panel')
.not('#floatingPrompt')
.not('#cfgConfig')
.not("#logprobsViewer")
.not('#logprobsViewer')
.is(':visible')) {
let visibleDrawerContent = $('.drawer-content:visible')
.not('#WorldInfo')
@ -1140,7 +1140,7 @@ export function initRossMods() {
.not('#right-nav-panel')
.not('#floatingPrompt')
.not('#cfgConfig')
.not("#logprobsViewer");
.not('#logprobsViewer');
$(visibleDrawerContent).parent().find('.drawer-icon').trigger('click');
return;
}

View File

@ -1688,7 +1688,7 @@ async function fetchImagesNoCache() {
// Pause Talkinghead to save resources when the ST tab is not visible or the window is minimized.
// We currently do this via loading/unloading. Could be improved by adding new pause/unpause endpoints to Extras.
document.addEventListener("visibilitychange", function (event) {
document.addEventListener('visibilitychange', function (event) {
let pageIsVisible;
if (document.hidden) {
console.debug('expressions: SillyTavern is now hidden');

View File

@ -674,7 +674,7 @@ export function parseNovelAILogprobs(data) {
// them with a logprob of -Infinity (0% probability)
const notInAfter = befores
.filter(([id]) => !afters.some(([aid]) => aid === id))
.map(([id]) => [id, -Infinity])
.map(([id]) => [id, -Infinity]);
const merged = afters.concat(notInAfter);
// Add the chosen token to `merged` if it's not already there. This can

View File

@ -17,7 +17,7 @@ export const SECRET_KEYS = {
MISTRALAI: 'api_key_mistralai',
TOGETHERAI: 'api_key_togetherai',
CUSTOM: 'api_key_custom',
OOBA: 'api_key_ooba'
OOBA: 'api_key_ooba',
};
const INPUT_MAP = {

View File

@ -719,7 +719,7 @@ router.post('/generate', jsonParser, function (request, response) {
// Adjust logprobs params for Chat Completions API, which expects { top_logprobs: number; logprobs: boolean; }
if (!isTextCompletion && bodyParams.logprobs > 0) {
bodyParams.top_logprobs = bodyParams.logprobs;
bodyParams.logprobs = true
bodyParams.logprobs = true;
}
if (getConfigValue('openai.randomizeUserId', false)) {

View File

@ -216,7 +216,7 @@ router.post('/generate', jsonParser, async function (req, res) {
}
const data = await response.json();
console.log("NovelAI Output", data?.output);
console.log('NovelAI Output', data?.output);
return res.send(data);
}
} catch (error) {

View File

@ -29,7 +29,7 @@ const SECRET_KEYS = {
TOGETHERAI: 'api_key_togetherai',
MISTRALAI: 'api_key_mistralai',
CUSTOM: 'api_key_custom',
OOBA: 'api_key_ooba'
OOBA: 'api_key_ooba',
};
/**

View File

@ -172,7 +172,7 @@ function getSourceSettings(source, request) {
const sourceSettings = {
extrasUrl: extrasUrl,
extrasKey: extrasKey
extrasKey: extrasKey,
};
return sourceSettings;
}