1
0
Fork 0

fix(gui): send CFG to API as decimal

This commit is contained in:
Sean Sube 2023-01-11 21:46:04 -06:00
parent dcfce81fed
commit ef33301d6b
1 changed files with 1 additions and 1 deletions

View File

@ -108,7 +108,7 @@ export async function imageFromResponse(root: string, res: Response): Promise<Ap
export function makeImageURL(root: string, type: string, params: BaseImgParams): URL { export function makeImageURL(root: string, type: string, params: BaseImgParams): URL {
const url = new URL(type, root); const url = new URL(type, root);
url.searchParams.append('cfg', params.cfg.toFixed(0)); url.searchParams.append('cfg', params.cfg.toFixed(1));
url.searchParams.append('steps', params.steps.toFixed(0)); url.searchParams.append('steps', params.steps.toFixed(0));
if (doesExist(params.model)) { if (doesExist(params.model)) {