Fix quiet prompt generations for Novel with streaming enabled.

This commit is contained in:
Cohee 2023-08-18 12:56:20 +03:00
parent 5528a493a6
commit 1e0e5225ca
1 changed files with 2 additions and 1 deletions

View File

@ -443,7 +443,6 @@ export function getNovelGenerationData(finalPrompt, this_settings, this_amount_g
"return_full_text": false,
"prefix": prefix,
"order": nai_settings.order || this_settings.order || default_order,
"streaming": nai_settings.streaming_novel,
};
}
@ -585,6 +584,8 @@ export function adjustNovelInstructionPrompt(prompt) {
}
export async function generateNovelWithStreaming(generate_data, signal) {
generate_data.streaming = nai_settings.streaming_novel;
const response = await fetch('/generate_novelai', {
headers: getRequestHeaders(),
body: JSON.stringify(generate_data),