fix: respect ModelScope model page limit
This commit is contained in:
@@ -105,7 +105,8 @@ class HuggingFaceDiscovery:
|
||||
min_downloads: int,
|
||||
updated_after=None,
|
||||
) -> list[HFModelSummary]:
|
||||
page_size = min(max(1, limit), 100)
|
||||
# ModelScope OpenAPI rejects values above 50 with InputParameterError.
|
||||
page_size = min(max(1, limit), 50)
|
||||
max_items = min(max(1, limit), 3000)
|
||||
task_tag = MODELSCOPE_TASK_TAGS.get(pipeline_tag, pipeline_tag)
|
||||
models: list[HFModelSummary] = []
|
||||
|
||||
@@ -1 +1 @@
|
||||
AGENT_VERSION = "2026.08.02.1"
|
||||
AGENT_VERSION = "2026.08.02.2"
|
||||
|
||||
Reference in New Issue
Block a user