mirror of
https://github.com/HIllya51/LunaTranslator.git
synced 2025-01-15 08:53:53 +08:00
.
This commit is contained in:
parent
27fe33a23f
commit
c11cd42912
@ -18,9 +18,7 @@ def list_models(typename, regist):
|
|||||||
proxies=getproxy(("reader", typename)),
|
proxies=getproxy(("reader", typename)),
|
||||||
)
|
)
|
||||||
try:
|
try:
|
||||||
return sorted(
|
return sorted([_["id"] for _ in resp.json()["data"]])
|
||||||
[_["id"] for _ in resp.json()["data"] if _["id"].startswith("tts")]
|
|
||||||
)
|
|
||||||
except:
|
except:
|
||||||
raise Exception(resp)
|
raise Exception(resp)
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user