update: xai增加max_tokens,max_words等参数

This commit is contained in:
taylor
2024-11-12 10:28:02 +08:00
parent 978bb9051d
commit 094033fb76

View File

@@ -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