diff --git a/astrbot/core/astr_agent_run_util.py b/astrbot/core/astr_agent_run_util.py index 5deb5af4e..7857042f3 100644 --- a/astrbot/core/astr_agent_run_util.py +++ b/astrbot/core/astr_agent_run_util.py @@ -72,7 +72,7 @@ async def run_agent( except Exception as e: logger.error(traceback.format_exc()) - err_msg = f"\n\nAstrBot 请求失败。\n错误类型: {type(e).__name__}\n错误信息: {e!s}\n\n请在控制台查看和分享错误详情。\n" + err_msg = f"\n\nAstrBot 请求失败。\n错误类型: {type(e).__name__}\n错误信息: {e!s}\n\n请在平台日志查看和分享错误详情。\n" if agent_runner.streaming: yield MessageChain().message(err_msg) else: diff --git a/astrbot/core/pipeline/process_stage/method/agent_sub_stages/third_party.py b/astrbot/core/pipeline/process_stage/method/agent_sub_stages/third_party.py index 34dc02ceb..b590bd77e 100644 --- a/astrbot/core/pipeline/process_stage/method/agent_sub_stages/third_party.py +++ b/astrbot/core/pipeline/process_stage/method/agent_sub_stages/third_party.py @@ -57,7 +57,7 @@ async def run_third_party_agent( logger.error(f"Third party agent runner error: {e}") err_msg = ( f"\nAstrBot 请求失败。\n错误类型: {type(e).__name__}\n" - f"错误信息: {e!s}\n\n请在控制台查看和分享错误详情。\n" + f"错误信息: {e!s}\n\n请在平台日志查看和分享错误详情。\n" ) yield MessageChain().message(err_msg) diff --git a/astrbot/core/platform/manager.py b/astrbot/core/platform/manager.py index 18a2def74..b941c8cbc 100644 --- a/astrbot/core/platform/manager.py +++ b/astrbot/core/platform/manager.py @@ -110,7 +110,7 @@ class PlatformManager: ) except (ImportError, ModuleNotFoundError) as e: logger.error( - f"加载平台适配器 {platform_config['type']} 失败,原因:{e}。请检查依赖库是否安装。提示:可以在 管理面板->控制台->安装Pip库 中安装依赖库。", + f"加载平台适配器 {platform_config['type']} 失败,原因:{e}。请检查依赖库是否安装。提示:可以在 管理面板->平台日志->安装Pip库 中安装依赖库。", ) except Exception as e: logger.error(f"加载平台适配器 {platform_config['type']} 失败,原因:{e}。") diff --git a/astrbot/core/platform/sources/wecom/wecom_event.py b/astrbot/core/platform/sources/wecom/wecom_event.py index ba9ad9a49..c566d3f0e 100644 --- a/astrbot/core/platform/sources/wecom/wecom_event.py +++ b/astrbot/core/platform/sources/wecom/wecom_event.py @@ -16,7 +16,7 @@ try: import pydub except Exception: logger.warning( - "检测到 pydub 库未安装,企业微信将无法语音收发。如需使用语音,请前往管理面板 -> 控制台 -> 安装 Pip 库安装 pydub。", + "检测到 pydub 库未安装,企业微信将无法语音收发。如需使用语音,请前往管理面板 -> 平台日志 -> 安装 Pip 库安装 pydub。", ) diff --git a/astrbot/core/platform/sources/weixin_official_account/weixin_offacc_event.py b/astrbot/core/platform/sources/weixin_official_account/weixin_offacc_event.py index d138fc80c..1974c91a9 100644 --- a/astrbot/core/platform/sources/weixin_official_account/weixin_offacc_event.py +++ b/astrbot/core/platform/sources/weixin_official_account/weixin_offacc_event.py @@ -13,7 +13,7 @@ try: import pydub except Exception: logger.warning( - "检测到 pydub 库未安装,微信公众平台将无法语音收发。如需使用语音,请前往管理面板 -> 控制台 -> 安装 Pip 库安装 pydub。", + "检测到 pydub 库未安装,微信公众平台将无法语音收发。如需使用语音,请前往管理面板 -> 平台日志 -> 安装 Pip 库安装 pydub。", ) diff --git a/astrbot/core/utils/tencent_record_helper.py b/astrbot/core/utils/tencent_record_helper.py index 9cc36571e..74c164586 100644 --- a/astrbot/core/utils/tencent_record_helper.py +++ b/astrbot/core/utils/tencent_record_helper.py @@ -36,7 +36,7 @@ async def wav_to_tencent_silk(wav_path: str, output_path: str) -> int: import pilk except (ImportError, ModuleNotFoundError) as _: raise Exception( - "pilk 模块未安装,请前往管理面板->控制台->安装pip库 安装 pilk 这个库", + "pilk 模块未安装,请前往管理面板->平台日志->安装pip库 安装 pilk 这个库", ) # with wave.open(wav_path, 'rb') as wav: # wav_data = wav.readframes(wav.getnframes()) diff --git a/astrbot/dashboard/routes/knowledge_base.py b/astrbot/dashboard/routes/knowledge_base.py index 050d5836c..d7db42c40 100644 --- a/astrbot/dashboard/routes/knowledge_base.py +++ b/astrbot/dashboard/routes/knowledge_base.py @@ -274,7 +274,7 @@ class KnowledgeBaseRoute(Route): except Exception as e: return ( Response() - .error(f"测试重排序模型失败: {e!s},请检查控制台日志输出。") + .error(f"测试重排序模型失败: {e!s},请检查平台日志输出。") .__dict__ ) diff --git a/dashboard/src/i18n/locales/zh-CN/core/navigation.json b/dashboard/src/i18n/locales/zh-CN/core/navigation.json index 3f6c225b5..b361b7b08 100644 --- a/dashboard/src/i18n/locales/zh-CN/core/navigation.json +++ b/dashboard/src/i18n/locales/zh-CN/core/navigation.json @@ -9,7 +9,7 @@ "chat": "聊天", "conversation": "对话数据", "sessionManagement": "自定义规则", - "console": "控制台", + "console": "平台日志", "alkaid": "Alkaid", "knowledgeBase": "知识库", "about": "关于", diff --git a/dashboard/src/i18n/locales/zh-CN/features/console.json b/dashboard/src/i18n/locales/zh-CN/features/console.json index 8c1d03a35..321bda339 100644 --- a/dashboard/src/i18n/locales/zh-CN/features/console.json +++ b/dashboard/src/i18n/locales/zh-CN/features/console.json @@ -1,5 +1,5 @@ { - "title": "控制台", + "title": "平台日志", "autoScroll": { "enabled": "自动滚动已开启", "disabled": "自动滚动已关闭" diff --git a/dashboard/src/i18n/locales/zh-CN/features/dashboard.json b/dashboard/src/i18n/locales/zh-CN/features/dashboard.json index bf9c163f4..42227932e 100644 --- a/dashboard/src/i18n/locales/zh-CN/features/dashboard.json +++ b/dashboard/src/i18n/locales/zh-CN/features/dashboard.json @@ -1,5 +1,5 @@ { - "title": "控制台", + "title": "平台日志", "subtitle": "实时监控和统计数据", "lastUpdate": "最后更新", "status": { diff --git a/dashboard/src/i18n/locales/zh-CN/features/extension.json b/dashboard/src/i18n/locales/zh-CN/features/extension.json index 4b7a8058f..6b1521dcc 100644 --- a/dashboard/src/i18n/locales/zh-CN/features/extension.json +++ b/dashboard/src/i18n/locales/zh-CN/features/extension.json @@ -94,7 +94,7 @@ "dialogs": { "error": { "title": "错误信息", - "checkConsole": "详情请检查控制台" + "checkConsole": "详情请检查平台日志" }, "config": { "title": "插件配置", diff --git a/dashboard/src/views/ConfigPage.vue b/dashboard/src/views/ConfigPage.vue index 880101cc8..8e929021c 100644 --- a/dashboard/src/views/ConfigPage.vue +++ b/dashboard/src/views/ConfigPage.vue @@ -37,13 +37,21 @@ :config_data="config_data" /> - - + + + - - + + +