Fix GUI Kobold

This commit is contained in:
Cohee 2024-01-02 10:28:34 +02:00
parent 9b24e7dc67
commit c69724e1da
2 changed files with 2 additions and 3 deletions

View File

@ -2891,7 +2891,7 @@ export async function generateRaw(prompt, api, instructOverride) {
case 'kobold':
case 'koboldhorde':
if (preset_settings === 'gui') {
generateData = { prompt: prompt, gui_settings: true, max_length: amount_gen, max_context_length: max_context };
generateData = { prompt: prompt, gui_settings: true, max_length: amount_gen, max_context_length: max_context, api_server };
} else {
const isHorde = api === 'koboldhorde';
const koboldSettings = koboldai_settings[koboldai_setting_names[preset_settings]];
@ -3724,6 +3724,7 @@ async function Generate(type, { automatic_trigger, force_name2, quiet_prompt, qu
gui_settings: true,
max_length: maxLength,
max_context_length: max_context,
api_server,
};
if (preset_settings != 'gui') {

View File

@ -4,7 +4,6 @@ import {
getStoppingStrings,
substituteParams,
api_server,
main_api,
} from '../script.js';
import {
@ -142,7 +141,6 @@ export function getKoboldGenerationData(finalPrompt, settings, maxLength, maxCon
sampler_seed: kai_settings.seed >= 0 ? kai_settings.seed : undefined,
api_server,
main_api,
};
return generate_data;
}