Add NAI Diffusion 3 model

This commit is contained in:
Cohee 2023-11-16 02:15:28 +02:00
parent 9e48d807cc
commit e753246373
2 changed files with 13 additions and 1 deletions

View File

@ -1180,6 +1180,10 @@ async function loadNovelModels() {
}
return [
{
value: 'nai-diffusion-3',
text: 'NAI Diffusion Anime V3',
},
{
value: 'nai-diffusion-2',
text: 'NAI Diffusion Anime V2',

View File

@ -268,12 +268,20 @@ function registerEndpoints(app, jsonParser) {
// NAI handholding for prompts
ucPreset: 0,
qualityToggle: false,
add_original_image: false,
controlnet_strength: 1,
dynamic_thresholding: false,
legacy: false,
sm: false,
sm_dyn: false,
uncond_scale: 1,
},
}),
});
if (!generateResult.ok) {
console.log('NovelAI returned an error.', generateResult.statusText);
const text = await generateResult.text();
console.log('NovelAI returned an error.', generateResult.statusText, text);
return response.sendStatus(500);
}