mrhan1993 / Fooocus-API

FastAPI powered API for Fooocus
GNU General Public License v3.0
567 stars 152 forks source link

API refresh-models Error #262

Closed sajjadafridi closed 6 months ago

sajjadafridi commented 6 months ago

Getting error when hit: /v1/engines/refresh-models Refresh Models: endpoint description: Refresh local files and get all filenames of base model and lora

File "fooocusapi/api.py", line 336, in refresh_models
config.update_all_model_names()
AttributeError: module 'modules.config' has no attribute 'update_all_model_names'

Anything wrong here with version mismatch? Can you please help?