Deprecated forced instruct on OpenRouter for Chat Completion

This commit is contained in:
Cohee
2024-09-15 10:54:12 +03:00
parent 2bc87a401e
commit 30af741c3e
19 changed files with 8 additions and 212 deletions

View File

@ -96,7 +96,6 @@ import {
openai_messages_count,
chat_completion_sources,
getChatCompletionModel,
isOpenRouterWithInstruct,
proxies,
loadProxyPresets,
selected_proxy,
@ -3927,8 +3926,7 @@ export async function Generate(type, { automatic_trigger, force_name2, quiet_pro
if (isContinue) {
// Coping mechanism for OAI spacing
const isForceInstruct = isOpenRouterWithInstruct();
if (main_api === 'openai' && !isForceInstruct && !cyclePrompt.endsWith(' ')) {
if (main_api === 'openai' && !cyclePrompt.endsWith(' ')) {
cyclePrompt += oai_settings.continue_postfix;
continue_mag += oai_settings.continue_postfix;
}