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