update: xai增加max_tokens,max_words等参数
This commit is contained in:
@@ -176,7 +176,7 @@ class XAi(Platform):
|
|||||||
if response.status != 200:
|
if response.status != 200:
|
||||||
return []
|
return []
|
||||||
response_data = await response.json()
|
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
|
pass
|
||||||
|
|
||||||
def get_type(self) -> str:
|
def get_type(self) -> str:
|
||||||
|
|||||||
Reference in New Issue
Block a user