fix(gui): send CFG to API as decimal
This commit is contained in:
parent
dcfce81fed
commit
ef33301d6b
|
@ -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)) {
|
||||||
|
|
Loading…
Reference in New Issue