From c11cd42912717fd9afe96bfa7f0ba222041c7882 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=81=8D=E5=85=AE=E6=83=9A=E5=85=AE?= <1173718158@qq.com> Date: Tue, 14 Jan 2025 15:45:35 +0800 Subject: [PATCH] . --- py/LunaTranslator/tts/chatgpttts.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/py/LunaTranslator/tts/chatgpttts.py b/py/LunaTranslator/tts/chatgpttts.py index 4927c60b..917f9bc1 100644 --- a/py/LunaTranslator/tts/chatgpttts.py +++ b/py/LunaTranslator/tts/chatgpttts.py @@ -18,9 +18,7 @@ def list_models(typename, regist): proxies=getproxy(("reader", typename)), ) try: - return sorted( - [_["id"] for _ in resp.json()["data"] if _["id"].startswith("tts")] - ) + return sorted([_["id"] for _ in resp.json()["data"]]) except: raise Exception(resp)