-
Notifications
You must be signed in to change notification settings - Fork 9.4k
Added parameter required_frontend_version in the /system_stats API response #8875
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Added parameter required_frontend_version in the /system_stats API response #8875
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Tested by running app normally and checking system_stats
response, confirming it sends the required frontend version from requirements.txt:

Then changed requirements.txt to have 1.24.1 frontend, but kept 1.23.4 installed. You can see the rqeuired_frontend_version
field in system_stats
reponse indicates what the versio should be, and the about panel shows what it actually is:

…sponse (comfyanonymous#8875) * Added the parameter required_frontend_version in the /system_stats api response * Update server.py * Created a function get_required_frontend_version and wrote tests for it * Refactored the function to return currently installed frontend pacakage version * Moved required_frontend to a new function and imported that in server.py * Corrected test cases using mocking techniques * Corrected files to comply with ruff formatting
Added parameter required_frontend_version in the /system_stats API response
comfyui-frontend-package
parameter from the requirements.txt file to get the required frontend version for the backend and added that as an additional parameter in the response of /system_stats API.