From 094033fb76cc2d1a36fce58ab1bf52fff4d9d7fa Mon Sep 17 00:00:00 2001 From: taylor <=> Date: Tue, 12 Nov 2024 10:28:02 +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 3edd9db..889c5fc 100644 --- a/maubot_llmplus/thrid_platform.py +++ b/maubot_llmplus/thrid_platform.py @@ -144,7 +144,7 @@ class XAi(Platform): } if 'max_tokens' in self.config and self.max_tokens: - data["max_tokens"] = self.max_tokens + request_body["max_tokens"] = self.max_tokens if 'temperature' in self.config and self.temperature: request_body["temperature"] = self.temperature