Add .git to jsconfig ignore
This commit is contained in:
parent
f66261a52c
commit
c8ef4b02bc
19
.eslintrc.js
19
.eslintrc.js
|
@ -59,15 +59,18 @@ module.exports = {
|
|||
},
|
||||
},
|
||||
],
|
||||
// There are various vendored libraries that shouldn't be linted
|
||||
ignorePatterns: [
|
||||
'public/lib/**/*',
|
||||
'*.min.js',
|
||||
'src/ai_horde/**/*',
|
||||
'plugins/**/*',
|
||||
'data/**/*',
|
||||
'backups/**/*',
|
||||
'node_modules/**/*',
|
||||
'**/node_modules/**',
|
||||
'**/dist/**',
|
||||
'**/.git/**',
|
||||
'public/lib/**',
|
||||
'backups/**',
|
||||
'data/**',
|
||||
'cache/**',
|
||||
'src/tokenizers/**',
|
||||
'docker/**',
|
||||
'plugins/**',
|
||||
'**/*.min.js',
|
||||
],
|
||||
rules: {
|
||||
'no-unused-vars': ['error', { args: 'none' }],
|
||||
|
|
|
@ -11,15 +11,14 @@
|
|||
"resolveJsonModule": true
|
||||
},
|
||||
"exclude": [
|
||||
"node_modules",
|
||||
"**/node_modules/*",
|
||||
"public/lib",
|
||||
"backups/*",
|
||||
"data/*",
|
||||
"**/dist/*",
|
||||
"dist/*",
|
||||
"cache/*",
|
||||
"src/tokenizers/*",
|
||||
"docker/*",
|
||||
"**/node_modules/**",
|
||||
"**/dist/**",
|
||||
"**/.git/**",
|
||||
"public/lib/**",
|
||||
"backups/**",
|
||||
"data/**",
|
||||
"cache/**",
|
||||
"src/tokenizers/**",
|
||||
"docker/**"
|
||||
]
|
||||
}
|
||||
|
|
|
@ -2029,7 +2029,7 @@ export function messageFormatting(mes, ch_name, isSystem, isUser, messageId, san
|
|||
// Return the original match if no quotes are found
|
||||
return match;
|
||||
}
|
||||
}
|
||||
},
|
||||
);
|
||||
|
||||
// Restore double quotes in tags
|
||||
|
|
|
@ -554,11 +554,9 @@ export function formatInstructModePrompt(name, isImpersonate, promptBias, name1,
|
|||
* @param {string} name Preset name.
|
||||
*/
|
||||
function selectMatchingContextTemplate(name) {
|
||||
let foundMatch = false;
|
||||
for (const context_preset of context_presets) {
|
||||
// If context template matches the instruct preset
|
||||
if (context_preset.name === name) {
|
||||
foundMatch = true;
|
||||
selectContextPreset(context_preset.name, { isAuto: true });
|
||||
break;
|
||||
}
|
||||
|
|
|
@ -1715,7 +1715,6 @@ async function sendOpenAIRequest(type, messages, signal) {
|
|||
messages = messages.filter(msg => msg && typeof msg === 'object');
|
||||
|
||||
let logit_bias = {};
|
||||
const messageId = getNextMessageId(type);
|
||||
const isClaude = oai_settings.chat_completion_source == chat_completion_sources.CLAUDE;
|
||||
const isOpenRouter = oai_settings.chat_completion_source == chat_completion_sources.OPENROUTER;
|
||||
const isScale = oai_settings.chat_completion_source == chat_completion_sources.SCALE;
|
||||
|
|
|
@ -51,7 +51,7 @@ const eratoRepPenWhitelist = [
|
|||
6, 1, 11, 13, 25, 198, 12, 9, 8, 279, 264, 459, 323, 477, 539, 912, 374, 574, 1051, 1550, 1587, 4536, 5828, 15058,
|
||||
3287, 3250, 1461, 1077, 813, 11074, 872, 1202, 1436, 7846, 1288, 13434, 1053, 8434, 617, 9167, 1047, 19117, 706,
|
||||
12775, 649, 4250, 527, 7784, 690, 2834, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 1210, 1359, 608, 220, 596, 956,
|
||||
3077, 44886, 4265, 3358, 2351, 2846, 311, 389, 315, 304, 520, 505, 430
|
||||
3077, 44886, 4265, 3358, 2351, 2846, 311, 389, 315, 304, 520, 505, 430,
|
||||
];
|
||||
|
||||
// Ban the dinkus and asterism
|
||||
|
|
|
@ -563,7 +563,7 @@ function convertMistralMessages(messages, charName = '', userName = '') {
|
|||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
};
|
||||
fixToolMessages();
|
||||
|
||||
// If system role message immediately follows an assistant message, change its role to user
|
||||
|
|
Loading…
Reference in New Issue