Skip to content

Commit

Permalink
fix(gui): send CFG to API as decimal
Browse files Browse the repository at this point in the history
  • Loading branch information
ssube committed Jan 12, 2023
1 parent dcfce81 commit ef33301
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gui/src/api/client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ export async function imageFromResponse(root: string, res: Response): Promise<Ap

export function makeImageURL(root: string, type: string, params: BaseImgParams): URL {
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));

if (doesExist(params.model)) {
Expand Down

0 comments on commit ef33301

Please sign in to comment.