fix: correct STT model path and improve logging in provider manager and pip installer
This commit is contained in:
@@ -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)": {
|
||||
|
||||
@@ -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):
|
||||
|
||||
@@ -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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user