Add .git to jsconfig ignore

c8ef4b02bcfba124b3fd6e92a183c44b13d11657

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

7 files changed, +23 -24Ignore whitespace
.eslintrc.js+11 -8
@@ -59,15 +59,18 @@ module.exports = {
5959 },
6060 },
6161 ],
62- // There are various vendored libraries that shouldn't be linted
6362 ignorePatterns: [
6463 'public/lib/**/node_modules/**',
6564 '*.min.js*/dist/**',
6665 'src/ai_horde/**/.git/**',
6766 'pluginspublic/**lib/**',
6867 'databackups/**/*',
6968 'backupsdata/**/*',
7069 'node_modulescache/**/*',
70+ 'src/tokenizers/**',
71+ 'docker/**',
72+ 'plugins/**',
73+ '**/*.min.js',
7174 ],
7275 rules: {
7376 'no-unused-vars': ['error', { args: 'none' }],
jsconfig.json+9 -10
@@ -11,15 +11,14 @@
1111 "resolveJsonModule": true
1212 },
1313 "exclude": [
1414 "**/node_modules/**",
1515 "**/node_modulesdist/**",
1616 "public**/lib.git/**",
1717 "backupspublic/lib/**",
1818 "databackups/**",
1919 "**/distdata/**",
2020 "distcache/**",
2121 "cachesrc/tokenizers/**",
2222 "src/tokenizersdocker/**",
23- "docker/*",
2423 ]
2524}
public/script.js+1 -1
@@ -2029,7 +2029,7 @@ export function messageFormatting(mes, ch_name, isSystem, isUser, messageId, san
20292029 // Return the original match if no quotes are found
20302030 return match;
20312031 }
20322032 },
20332033 );
20342034
20352035 // Restore double quotes in tags
public/scripts/instruct-mode.js+0 -2
@@ -554,11 +554,9 @@ export function formatInstructModePrompt(name, isImpersonate, promptBias, name1,
554554 * @param {string} name Preset name.
555555 */
556556function selectMatchingContextTemplate(name) {
557- let foundMatch = false;
558557 for (const context_preset of context_presets) {
559558 // If context template matches the instruct preset
560559 if (context_preset.name === name) {
561- foundMatch = true;
562560 selectContextPreset(context_preset.name, { isAuto: true });
563561 break;
564562 }
public/scripts/openai.js+0 -1
@@ -1715,7 +1715,6 @@ async function sendOpenAIRequest(type, messages, signal) {
17151715 messages = messages.filter(msg => msg && typeof msg === 'object');
17161716
17171717 let logit_bias = {};
1718- const messageId = getNextMessageId(type);
17191718 const isClaude = oai_settings.chat_completion_source == chat_completion_sources.CLAUDE;
17201719 const isOpenRouter = oai_settings.chat_completion_source == chat_completion_sources.OPENROUTER;
17211720 const isScale = oai_settings.chat_completion_source == chat_completion_sources.SCALE;
src/endpoints/novelai.js+1 -1
@@ -51,7 +51,7 @@ const eratoRepPenWhitelist = [
5151 6, 1, 11, 13, 25, 198, 12, 9, 8, 279, 264, 459, 323, 477, 539, 912, 374, 574, 1051, 1550, 1587, 4536, 5828, 15058,
5252 3287, 3250, 1461, 1077, 813, 11074, 872, 1202, 1436, 7846, 1288, 13434, 1053, 8434, 617, 9167, 1047, 19117, 706,
5353 12775, 649, 4250, 527, 7784, 690, 2834, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 1210, 1359, 608, 220, 596, 956,
5454 3077, 44886, 4265, 3358, 2351, 2846, 311, 389, 315, 304, 520, 505, 430,
5555];
5656
5757// Ban the dinkus and asterism
src/prompt-converters.js+1 -1
@@ -563,7 +563,7 @@ function convertMistralMessages(messages, charName = '', userName = '') {
563563 }
564564 });
565565 }
566566 };
567567 fixToolMessages();
568568
569569 // If system role message immediately follows an assistant message, change its role to user