From 0a5f09dc57d2f4e7e26d83b525fc52b28a837d77 Mon Sep 17 00:00:00 2001
From: PGijsbers
Date: Wed, 3 Jun 2026 16:45:18 +0200
Subject: [PATCH] Lower the limit of the list calls to match new server maximum
---
openml/evaluations/functions.py | 3 ++-
openml/utils/_openml.py | 4 ++--
2 files changed, 4 insertions(+), 3 deletions(-)
diff --git a/openml/evaluations/functions.py b/openml/evaluations/functions.py
index f4e07c1b8..1c786ad23 100644
--- a/openml/evaluations/functions.py
+++ b/openml/evaluations/functions.py
@@ -79,8 +79,9 @@ def list_evaluations(
the evaluation function. e.g., predictive_accuracy
offset : int, optional
the number of runs to skip, starting from the first
- size : int, default 10000
+ size : int, default 1000
The maximum number of runs to show.
+ Maximum allowed is 1000.
If set to ``None``, it returns all the results.
tasks : list[int,str], optional
diff --git a/openml/utils/_openml.py b/openml/utils/_openml.py
index 2bf54690e..5c710ca38 100644
--- a/openml/utils/_openml.py
+++ b/openml/utils/_openml.py
@@ -249,7 +249,7 @@ def _list_all( # noqa: C901
*,
limit: int | None = None,
offset: int | None = None,
- batch_size: int | None = 10_000,
+ batch_size: int | None = 1000,
) -> list[_SizedT]:
"""Helper to handle paged listing requests.
@@ -279,7 +279,7 @@ def _list_all( # noqa: C901
results: list[_SizedT] = []
offset = offset if offset is not None else 0
- batch_size = batch_size if batch_size is not None else 10_000
+ batch_size = batch_size if batch_size is not None else 1000
LIMIT = limit
BATCH_SIZE_ORIG = batch_size