update: xai增加max_tokens,max_words等参数
This commit is contained in:
@@ -171,6 +171,7 @@ class XAi(Platform):
|
|||||||
async def list_models(self) -> List[str]:
|
async def list_models(self) -> List[str]:
|
||||||
# 调用openai接口获取模型列表
|
# 调用openai接口获取模型列表
|
||||||
full_url = f"{self.url}/v1/models"
|
full_url = f"{self.url}/v1/models"
|
||||||
|
headers = {'Authorization': f"Bearer {self.api_key}"}
|
||||||
async with self.http.get(full_url) as response:
|
async with self.http.get(full_url) as response:
|
||||||
if response.status != 200:
|
if response.status != 200:
|
||||||
return []
|
return []
|
||||||
|
|||||||
Reference in New Issue
Block a user