From 4ae0c253563f377d0072397b5cee51361d87937a Mon Sep 17 00:00:00 2001 From: taylor <=> Date: Tue, 12 Nov 2024 10:36:07 +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 3231951..8b69a4d 100644 --- a/maubot_llmplus/thrid_platform.py +++ b/maubot_llmplus/thrid_platform.py @@ -138,7 +138,7 @@ class XAi(Platform): "Authorization": f"Bearer {self.api_key}" } request_body = { - "message": full_context, + "messages": full_context, "model": self.model, "stream": False }