update: xai增加max_tokens,max_words等参数

This commit is contained in:
taylor
2024-11-12 11:15:36 +08:00
parent 9440cda7b0
commit 09c2ecef29

View File

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