mirror of
https://github.com/infiniflow/ragflow.git
synced 2026-06-29 15:31:05 +08:00
Fix: filter unsupported model_type (#16062)
### What problem does this PR solve? As title. ### Type of change - [x] Bug Fix (non-breaking change which fixes an issue)
This commit is contained in:
@@ -603,7 +603,7 @@ def _hybrid_get_instance_models(provider_name: str, instance_id: str):
|
||||
model_info_map: dict = {}
|
||||
model_unsupported_type_map = {}
|
||||
for model_record in model_records:
|
||||
if model_record.status == ActiveStatusEnum.UNSUPPORTED:
|
||||
if model_record.status == ActiveStatusEnum.UNSUPPORTED.value:
|
||||
if model_unsupported_type_map.get(model_record.model_name):
|
||||
model_unsupported_type_map[model_record.model_name].append(model_record.model_type)
|
||||
else:
|
||||
|
||||
Reference in New Issue
Block a user