From 38dbcd1643b73741dfe932452a7b27f49553bbab Mon Sep 17 00:00:00 2001 From: snaily Date: Tue, 17 Jun 2025 23:30:36 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E6=9B=B4=E6=96=B0API=E8=AF=B7=E6=B1=82U?= =?UTF-8?q?RL=EF=BC=8C=E5=A2=9E=E5=8A=A0pageSize=E5=8F=82=E6=95=B0?= =?UTF-8?q?=E4=BB=A5=E6=94=AF=E6=8C=81=E6=9B=B4=E5=A4=A7=E6=A8=A1=E5=9E=8B?= =?UTF-8?q?=E5=88=97=E8=A1=A8=E7=9A=84=E8=8E=B7=E5=8F=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/service/client/api_client.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/service/client/api_client.py b/app/service/client/api_client.py index 33ce488..10d4391 100644 --- a/app/service/client/api_client.py +++ b/app/service/client/api_client.py @@ -53,7 +53,7 @@ class GeminiApiClient(ApiClient): logger.info(f"Using proxy for getting models: {proxy_to_use}") async with httpx.AsyncClient(timeout=timeout, proxy=proxy_to_use) as client: - url = f"{self.base_url}/models?key={api_key}" + url = f"{self.base_url}/models?key={api_key}&pageSize=1000" try: response = await client.get(url) response.raise_for_status()