Add .git to jsconfig ignore

This commit is contained in:
Cohee
2024-10-06 19:12:28 +03:00
parent f66261a52c
commit c8ef4b02bc
7 changed files with 23 additions and 24 deletions

View File

@ -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;
}

View File

@ -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;