mirror of
https://github.com/open-webui/open-webui.git
synced 2026-07-21 17:29:50 -05:00
[GH-ISSUE #7328] Input on "set CFG Scale" does not maintain decimal precision and causes error when enabling/saving Automatic1111 image generation #14703
Reference in New Issue
Block a user
Originally created by @VirgilVasiu on GitHub (Nov 25, 2024).
Original GitHub issue: https://github.com/open-webui/open-webui/issues/7328
Bug Report
Installation Method
Python using pipx install open-webui
Environment
Open WebUI Version: v0.4.4
Ollama (if applicable): 0.4.2
Operating System: Debian 12.2.0-14
Browser (if applicable): Chromium 131.0.6778.85
Confirmation:
Expected Behavior:
Enable Image Generation (Experimental) and save to enable image generation functionality with Automatic1111.
Actual Behavior:
When clicking save the webpage freezes and nothing can be done until page is reloaded. Then page shows changes but image generation has not been enabled.
Log of open-webui shows the following error: INFO: 192.168.X.XX:4515 - "POST /images/api/v1/config/update HTTP/1.1" 422 Unprocessable Entity
Description
Bug Summary:
Input on "set CFG Scale" does not maintain decimal precision and causes error when enabling/saving Automatic1111 image generation settings.
Reproduction Details
Steps to Reproduce:
Inputting 7.0 into the "set CFG Scale" field and enabling image generation and saving will allow image generation to work with no issues. However if any change is made or the page refreshed for any reason then the 7.0 will become 7 and saving will cause the webpage to freeze and the changes to not be saved.
If 7.1 is used then no issues occur, and reloading the page keeps the 7.1 populated so saving changes works properly.
Logs and Screenshots
Additional Information
Issue was discussed and has screenshots in https://github.com/open-webui/open-webui/discussions/5976