From 22bb9caa9afa88506e58a768e5ce62cc238be0f7 Mon Sep 17 00:00:00 2001 From: Nicola Soranzo Date: Sat, 7 Mar 2026 17:59:58 +0000 Subject: [PATCH] Remove ``direction`` argument from ``list_models()`` call Dropped upstream in: https://github.com/huggingface/huggingface_hub/pull/3882 --- lib/galaxy/files/sources/huggingface.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/galaxy/files/sources/huggingface.py b/lib/galaxy/files/sources/huggingface.py index 1e04b8330f4..3995697dd2b 100644 --- a/lib/galaxy/files/sources/huggingface.py +++ b/lib/galaxy/files/sources/huggingface.py @@ -155,7 +155,7 @@ class HuggingFaceFilesSource( endpoint=config.endpoint, ) try: - repos_iter = api.list_models(search=query, sort=DEFAULT_SORT_BY, direction=-1, limit=MAX_REPO_LIMIT) + repos_iter = api.list_models(search=query, sort=DEFAULT_SORT_BY, limit=MAX_REPO_LIMIT) # Convert repositories to directory entries entries_list: list[AnyRemoteEntry] = []