Switch agent discovery to ModelScope

This commit is contained in:
CoolBoy
2026-07-10 01:44:16 +08:00
parent 5460fbd108
commit 3a2fa86e1e
14 changed files with 486 additions and 53 deletions

View File

@@ -23,9 +23,12 @@ class HFModelSummary:
last_modified: datetime | None
pipeline_tag: str | None
created_at: datetime | None = None
source: str = "huggingface"
@property
def model_address(self) -> str:
if self.source == "modelscope":
return f"https://modelscope.cn/models/{self.repo_id}"
return f"https://huggingface.co/{self.repo_id}"