mirror of
https://github.com/open-webui/open-webui.git
synced 2026-03-11 00:04:08 -05:00
[PR #4333] [MERGED] fix: made the COMFYUI_FLUX_FP8_CLIP environment variable bool instead of str #8258
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/open-webui/open-webui/pull/4333
Author: @JohnTheNerd
Created: 8/3/2024
Status: ✅ Merged
Merged: 8/4/2024
Merged by: @tjbck
Base:
dev← Head:comfyui-fix📝 Commits (1)
cdcf214made the COMFYUI_FLUX_FP8_CLIP environment variable bool instead of str📊 Changes
1 file changed (+1 additions, -1 deletions)
View changed files
📝
backend/config.py(+1 -1)📄 Description
Pull Request Checklist
Note to first-time contributors: Please open a discussion post in Discussions and describe your changes before submitting a pull request.
Before submitting, make sure you've checked the following:
devbranch.Changelog Entry
Description
in #4300, I accidentally defined COMFYUI_FLUX_FP8_CLIP as a string instead of a boolean in config.py - which upsets Pydantic when it's not set and therefore is an empty string
Added
n/a
Changed
COMFYUI_FLUX_FP8_CLIP is now expected to be "true" or "false", defaulting to "false".
Deprecated
n/a
Removed
n/a
Fixed
this PR should fix #4328
Security
n/a
Breaking Changes
n/a
Additional Information
I built the Dockerfile and pushed it to
ghcr.io/johnthenerd/open-webui:comfyui-fix- something is preventing me from running the GitHub Actions since my last round of PR's (GHCR just 403s in the push stage) and I'd rather get the fix out instead of investigating it.This does mean I only have the x86 image without CUDA or ollama in that tag above since I just build and push from my laptop, but it should suffice for testing.
Screenshots or Videos
environment variable not set, before this PR:

I'm not able to provide an "after this PR" screenshot with fp16 (which is the default without the variable set) as I do not have enough RAM/VRAM to do so and therefore my entire server starts thrashing when I try. I can however confirm that the error message no longer appears and the ComfyUI request is set correctly regardless of the environment variable.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.