Skip to content

Commit a96bdfc

Browse files
sl-gnsibianl
andauthored
fix(backend): fix model list api error if not init model info from config (#250)
Co-authored-by: sibianl <sibianl@rings.net.cn>
1 parent 7f8b001 commit a96bdfc

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

src/backend/server/static_config.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -173,6 +173,8 @@ def init_model_info_dict_cache(use_hfcache: bool = False):
173173

174174

175175
def get_model_info_dict_cache():
176+
if model_info_dict_cache is None:
177+
return {}
176178
return model_info_dict_cache
177179

178180

0 commit comments

Comments
 (0)