mirror of
https://github.com/langbot-app/LangBot.git
synced 2026-07-20 03:16:14 +00:00
fix: 获取模型列表时未传递version参数
This commit is contained in:
@@ -53,6 +53,10 @@ class ModelManager:
|
|||||||
async with session.request(
|
async with session.request(
|
||||||
method="GET",
|
method="GET",
|
||||||
url=FETCH_MODEL_LIST_URL,
|
url=FETCH_MODEL_LIST_URL,
|
||||||
|
# 参数
|
||||||
|
params={
|
||||||
|
"version": self.ap.ver_mgr.get_current_version()
|
||||||
|
},
|
||||||
) as resp:
|
) as resp:
|
||||||
model_list = (await resp.json())['data']['list']
|
model_list = (await resp.json())['data']['list']
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user