fix: correct STT model path and improve logging in provider manager and pip installer

This commit is contained in:
Soulter
2025-02-27 11:33:53 +08:00
parent 2649d46d8d
commit aa3cfd887a
3 changed files with 4 additions and 3 deletions
+1 -1
View File
@@ -588,7 +588,7 @@ CONFIG_METADATA_2 = {
"enable": False,
"id": "sensevoice",
"type": "sensevoice_stt_selfhost",
"stt_model": "icc/SenseVoiceSmall",
"stt_model": "iic/SenseVoiceSmall",
"is_emotion": False,
},
"OpenAI_TTS(API)": {
+1 -1
View File
@@ -219,7 +219,7 @@ class ProviderManager():
self.inst_map[provider_config['id']] = inst
except Exception as e:
traceback.print_exc()
logger.error(traceback.format_exc())
logger.error(f"实例化 {provider_config['type']}({provider_config['id']}) 提供商适配器失败:{e}")
async def reload(self, provider_config: dict):
+2 -1
View File
@@ -1,6 +1,7 @@
import logging
from pip import main as pip_main
logger = logging.getLogger("astrbot")
class PipInstaller():
def __init__(self, pip_install_arg: str):
self.pip_install_arg = pip_install_arg
@@ -20,7 +21,7 @@ class PipInstaller():
if self.pip_install_arg:
args.extend(self.pip_install_arg.split())
print(f"Pip 包管理器: {' '.join(args)}")
logger.info(f"Pip 包管理器: pip {' '.join(args)}")
result_code = pip_main(args)