From 09c2ecef29b3b809d145050f22a3912898a54989 Mon Sep 17 00:00:00 2001 From: taylor <=> Date: Tue, 12 Nov 2024 11:15:36 +0800 Subject: [PATCH] =?UTF-8?q?update:=20xai=E5=A2=9E=E5=8A=A0max=5Ftokens,max?= =?UTF-8?q?=5Fwords=E7=AD=89=E5=8F=82=E6=95=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- maubot_llmplus/thrid_platform.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/maubot_llmplus/thrid_platform.py b/maubot_llmplus/thrid_platform.py index 88c145d..0a15f05 100644 --- a/maubot_llmplus/thrid_platform.py +++ b/maubot_llmplus/thrid_platform.py @@ -176,7 +176,7 @@ class XAi(Platform): if response.status != 200: return [] response_data = await response.json() - return [f"- {m['id']}" for m in response_data["models"]] + return [f"- {m['id']}" for m in response_data["data"]] pass def get_type(self) -> str: