AstrBot 4.1.5__tar.gz → 4.1.7__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {astrbot-4.1.5 → astrbot-4.1.7}/PKG-INFO +3 -2
- {astrbot-4.1.5 → astrbot-4.1.7}/README.md +2 -1
- {astrbot-4.1.5 → astrbot-4.1.7}/astrbot/core/config/default.py +1 -1
- {astrbot-4.1.5 → astrbot-4.1.7}/astrbot/core/db/sqlite.py +1 -0
- {astrbot-4.1.5 → astrbot-4.1.7}/astrbot/core/pipeline/process_stage/method/llm_request.py +5 -5
- {astrbot-4.1.5 → astrbot-4.1.7}/astrbot/core/provider/manager.py +19 -6
- {astrbot-4.1.5 → astrbot-4.1.7}/astrbot/core/star/context.py +7 -4
- {astrbot-4.1.5 → astrbot-4.1.7}/astrbot/core/utils/io.py +6 -18
- {astrbot-4.1.5 → astrbot-4.1.7}/astrbot/dashboard/routes/config.py +7 -24
- {astrbot-4.1.5 → astrbot-4.1.7}/astrbot/dashboard/routes/conversation.py +58 -8
- astrbot-4.1.7/changelogs/v4.1.6.md +3 -0
- astrbot-4.1.7/changelogs/v4.1.7.md +8 -0
- astrbot-4.1.5/dashboard/src/views/ChatPage.vue → astrbot-4.1.7/dashboard/src/components/chat/Chat.vue +96 -797
- astrbot-4.1.7/dashboard/src/components/chat/MessageList.vue +775 -0
- {astrbot-4.1.5 → astrbot-4.1.7}/dashboard/src/components/chat/ProviderModelSelector.vue +59 -54
- astrbot-4.1.7/dashboard/src/components/platform/AddNewPlatform.vue +169 -0
- astrbot-4.1.7/dashboard/src/components/provider/AddNewProvider.vue +239 -0
- {astrbot-4.1.5 → astrbot-4.1.7}/dashboard/src/i18n/locales/en-US/features/conversation.json +19 -1
- {astrbot-4.1.5 → astrbot-4.1.7}/dashboard/src/i18n/locales/zh-CN/features/conversation.json +19 -1
- {astrbot-4.1.5 → astrbot-4.1.7}/dashboard/src/layouts/full/vertical-header/VerticalHeader.vue +188 -245
- astrbot-4.1.7/dashboard/src/utils/platformUtils.js +78 -0
- astrbot-4.1.7/dashboard/src/utils/providerUtils.js +51 -0
- {astrbot-4.1.5 → astrbot-4.1.7}/dashboard/src/views/ChatBoxPage.vue +3 -21
- astrbot-4.1.7/dashboard/src/views/ChatPage.vue +15 -0
- {astrbot-4.1.5 → astrbot-4.1.7}/dashboard/src/views/ConversationPage.vue +222 -300
- {astrbot-4.1.5 → astrbot-4.1.7}/dashboard/src/views/PersonaPage.vue +5 -9
- {astrbot-4.1.5 → astrbot-4.1.7}/dashboard/src/views/PlatformPage.vue +23 -204
- {astrbot-4.1.5 → astrbot-4.1.7}/dashboard/src/views/ProviderPage.vue +13 -215
- {astrbot-4.1.5 → astrbot-4.1.7}/dashboard/src/views/dashboards/default/DefaultDashboard.vue +1 -25
- {astrbot-4.1.5 → astrbot-4.1.7}/pyproject.toml +1 -1
- astrbot-4.1.5/dashboard/src/components/shared/UiParentCard.vue +0 -20
- {astrbot-4.1.5 → astrbot-4.1.7}/.dockerignore +0 -0
- {astrbot-4.1.5 → astrbot-4.1.7}/.github/FUNDING.yml +0 -0
- {astrbot-4.1.5 → astrbot-4.1.7}/.github/ISSUE_TEMPLATE/PLUGIN_PUBLISH.yml +0 -0
- {astrbot-4.1.5 → astrbot-4.1.7}/.github/ISSUE_TEMPLATE/bug-report.yml +0 -0
- {astrbot-4.1.5 → astrbot-4.1.7}/.github/ISSUE_TEMPLATE/feature-request.yml +0 -0
- {astrbot-4.1.5 → astrbot-4.1.7}/.github/PULL_REQUEST_TEMPLATE.md +0 -0
- {astrbot-4.1.5 → astrbot-4.1.7}/.github/auto_assign.yml +0 -0
- {astrbot-4.1.5 → astrbot-4.1.7}/.github/copilot-instructions.md +0 -0
- {astrbot-4.1.5 → astrbot-4.1.7}/.github/dependabot.yml +0 -0
- {astrbot-4.1.5 → astrbot-4.1.7}/.github/workflows/auto_release.yml +0 -0
- {astrbot-4.1.5 → astrbot-4.1.7}/.github/workflows/code-format.yml +0 -0
- {astrbot-4.1.5 → astrbot-4.1.7}/.github/workflows/codeql.yml +0 -0
- {astrbot-4.1.5 → astrbot-4.1.7}/.github/workflows/coverage_test.yml +0 -0
- {astrbot-4.1.5 → astrbot-4.1.7}/.github/workflows/dashboard_ci.yml +0 -0
- {astrbot-4.1.5 → astrbot-4.1.7}/.github/workflows/docker-image.yml +0 -0
- {astrbot-4.1.5 → astrbot-4.1.7}/.github/workflows/stale.yml +0 -0
- {astrbot-4.1.5 → astrbot-4.1.7}/.gitignore +0 -0
- {astrbot-4.1.5 → astrbot-4.1.7}/.pre-commit-config.yaml +0 -0
- {astrbot-4.1.5 → astrbot-4.1.7}/.python-version +0 -0
- {astrbot-4.1.5 → astrbot-4.1.7}/CODE_OF_CONDUCT.md +0 -0
- {astrbot-4.1.5 → astrbot-4.1.7}/Dockerfile +0 -0
- {astrbot-4.1.5 → astrbot-4.1.7}/Dockerfile_with_node +0 -0
- {astrbot-4.1.5 → astrbot-4.1.7}/LICENSE +0 -0
- {astrbot-4.1.5 → astrbot-4.1.7}/README_en.md +0 -0
- {astrbot-4.1.5 → astrbot-4.1.7}/README_ja.md +0 -0
- {astrbot-4.1.5 → astrbot-4.1.7}/astrbot/__init__.py +0 -0
- {astrbot-4.1.5 → astrbot-4.1.7}/astrbot/api/__init__.py +0 -0
- {astrbot-4.1.5 → astrbot-4.1.7}/astrbot/api/all.py +0 -0
- {astrbot-4.1.5 → astrbot-4.1.7}/astrbot/api/event/__init__.py +0 -0
- {astrbot-4.1.5 → astrbot-4.1.7}/astrbot/api/event/filter/__init__.py +0 -0
- {astrbot-4.1.5 → astrbot-4.1.7}/astrbot/api/message_components.py +0 -0
- {astrbot-4.1.5 → astrbot-4.1.7}/astrbot/api/platform/__init__.py +0 -0
- {astrbot-4.1.5 → astrbot-4.1.7}/astrbot/api/provider/__init__.py +0 -0
- {astrbot-4.1.5 → astrbot-4.1.7}/astrbot/api/star/__init__.py +0 -0
- {astrbot-4.1.5 → astrbot-4.1.7}/astrbot/api/util/__init__.py +0 -0
- {astrbot-4.1.5 → astrbot-4.1.7}/astrbot/cli/__init__.py +0 -0
- {astrbot-4.1.5 → astrbot-4.1.7}/astrbot/cli/__main__.py +0 -0
- {astrbot-4.1.5 → astrbot-4.1.7}/astrbot/cli/commands/__init__.py +0 -0
- {astrbot-4.1.5 → astrbot-4.1.7}/astrbot/cli/commands/cmd_conf.py +0 -0
- {astrbot-4.1.5 → astrbot-4.1.7}/astrbot/cli/commands/cmd_init.py +0 -0
- {astrbot-4.1.5 → astrbot-4.1.7}/astrbot/cli/commands/cmd_plug.py +0 -0
- {astrbot-4.1.5 → astrbot-4.1.7}/astrbot/cli/commands/cmd_run.py +0 -0
- {astrbot-4.1.5 → astrbot-4.1.7}/astrbot/cli/utils/__init__.py +0 -0
- {astrbot-4.1.5 → astrbot-4.1.7}/astrbot/cli/utils/basic.py +0 -0
- {astrbot-4.1.5 → astrbot-4.1.7}/astrbot/cli/utils/plugin.py +0 -0
- {astrbot-4.1.5 → astrbot-4.1.7}/astrbot/cli/utils/version_comparator.py +0 -0
- {astrbot-4.1.5 → astrbot-4.1.7}/astrbot/core/__init__.py +0 -0
- {astrbot-4.1.5 → astrbot-4.1.7}/astrbot/core/agent/agent.py +0 -0
- {astrbot-4.1.5 → astrbot-4.1.7}/astrbot/core/agent/handoff.py +0 -0
- {astrbot-4.1.5 → astrbot-4.1.7}/astrbot/core/agent/hooks.py +0 -0
- {astrbot-4.1.5 → astrbot-4.1.7}/astrbot/core/agent/mcp_client.py +0 -0
- {astrbot-4.1.5 → astrbot-4.1.7}/astrbot/core/agent/response.py +0 -0
- {astrbot-4.1.5 → astrbot-4.1.7}/astrbot/core/agent/run_context.py +0 -0
- {astrbot-4.1.5 → astrbot-4.1.7}/astrbot/core/agent/runners/__init__.py +0 -0
- {astrbot-4.1.5 → astrbot-4.1.7}/astrbot/core/agent/runners/base.py +0 -0
- {astrbot-4.1.5 → astrbot-4.1.7}/astrbot/core/agent/runners/tool_loop_agent_runner.py +0 -0
- {astrbot-4.1.5 → astrbot-4.1.7}/astrbot/core/agent/tool.py +0 -0
- {astrbot-4.1.5 → astrbot-4.1.7}/astrbot/core/agent/tool_executor.py +0 -0
- {astrbot-4.1.5 → astrbot-4.1.7}/astrbot/core/astr_agent_context.py +0 -0
- {astrbot-4.1.5 → astrbot-4.1.7}/astrbot/core/astrbot_config_mgr.py +0 -0
- {astrbot-4.1.5 → astrbot-4.1.7}/astrbot/core/config/__init__.py +0 -0
- {astrbot-4.1.5 → astrbot-4.1.7}/astrbot/core/config/astrbot_config.py +0 -0
- {astrbot-4.1.5 → astrbot-4.1.7}/astrbot/core/conversation_mgr.py +0 -0
- {astrbot-4.1.5 → astrbot-4.1.7}/astrbot/core/core_lifecycle.py +0 -0
- {astrbot-4.1.5 → astrbot-4.1.7}/astrbot/core/db/__init__.py +0 -0
- {astrbot-4.1.5 → astrbot-4.1.7}/astrbot/core/db/migration/helper.py +0 -0
- {astrbot-4.1.5 → astrbot-4.1.7}/astrbot/core/db/migration/migra_3_to_4.py +0 -0
- {astrbot-4.1.5 → astrbot-4.1.7}/astrbot/core/db/migration/shared_preferences_v3.py +0 -0
- {astrbot-4.1.5 → astrbot-4.1.7}/astrbot/core/db/migration/sqlite_v3.py +0 -0
- {astrbot-4.1.5 → astrbot-4.1.7}/astrbot/core/db/po.py +0 -0
- {astrbot-4.1.5 → astrbot-4.1.7}/astrbot/core/db/vec_db/base.py +0 -0
- {astrbot-4.1.5 → astrbot-4.1.7}/astrbot/core/db/vec_db/faiss_impl/__init__.py +0 -0
- {astrbot-4.1.5 → astrbot-4.1.7}/astrbot/core/db/vec_db/faiss_impl/document_storage.py +0 -0
- {astrbot-4.1.5 → astrbot-4.1.7}/astrbot/core/db/vec_db/faiss_impl/embedding_storage.py +0 -0
- {astrbot-4.1.5 → astrbot-4.1.7}/astrbot/core/db/vec_db/faiss_impl/sqlite_init.sql +0 -0
- {astrbot-4.1.5 → astrbot-4.1.7}/astrbot/core/db/vec_db/faiss_impl/vec_db.py +0 -0
- {astrbot-4.1.5 → astrbot-4.1.7}/astrbot/core/event_bus.py +0 -0
- {astrbot-4.1.5 → astrbot-4.1.7}/astrbot/core/file_token_service.py +0 -0
- {astrbot-4.1.5 → astrbot-4.1.7}/astrbot/core/initial_loader.py +0 -0
- {astrbot-4.1.5 → astrbot-4.1.7}/astrbot/core/log.py +0 -0
- {astrbot-4.1.5 → astrbot-4.1.7}/astrbot/core/message/components.py +0 -0
- {astrbot-4.1.5 → astrbot-4.1.7}/astrbot/core/message/message_event_result.py +0 -0
- {astrbot-4.1.5 → astrbot-4.1.7}/astrbot/core/persona_mgr.py +0 -0
- {astrbot-4.1.5 → astrbot-4.1.7}/astrbot/core/pipeline/__init__.py +0 -0
- {astrbot-4.1.5 → astrbot-4.1.7}/astrbot/core/pipeline/content_safety_check/stage.py +0 -0
- {astrbot-4.1.5 → astrbot-4.1.7}/astrbot/core/pipeline/content_safety_check/strategies/__init__.py +0 -0
- {astrbot-4.1.5 → astrbot-4.1.7}/astrbot/core/pipeline/content_safety_check/strategies/baidu_aip.py +0 -0
- {astrbot-4.1.5 → astrbot-4.1.7}/astrbot/core/pipeline/content_safety_check/strategies/keywords.py +0 -0
- {astrbot-4.1.5 → astrbot-4.1.7}/astrbot/core/pipeline/content_safety_check/strategies/strategy.py +0 -0
- {astrbot-4.1.5 → astrbot-4.1.7}/astrbot/core/pipeline/context.py +0 -0
- {astrbot-4.1.5 → astrbot-4.1.7}/astrbot/core/pipeline/context_utils.py +0 -0
- {astrbot-4.1.5 → astrbot-4.1.7}/astrbot/core/pipeline/preprocess_stage/stage.py +0 -0
- {astrbot-4.1.5 → astrbot-4.1.7}/astrbot/core/pipeline/process_stage/method/star_request.py +0 -0
- {astrbot-4.1.5 → astrbot-4.1.7}/astrbot/core/pipeline/process_stage/stage.py +0 -0
- {astrbot-4.1.5 → astrbot-4.1.7}/astrbot/core/pipeline/rate_limit_check/stage.py +0 -0
- {astrbot-4.1.5 → astrbot-4.1.7}/astrbot/core/pipeline/respond/stage.py +0 -0
- {astrbot-4.1.5 → astrbot-4.1.7}/astrbot/core/pipeline/result_decorate/stage.py +0 -0
- {astrbot-4.1.5 → astrbot-4.1.7}/astrbot/core/pipeline/scheduler.py +0 -0
- {astrbot-4.1.5 → astrbot-4.1.7}/astrbot/core/pipeline/session_status_check/stage.py +0 -0
- {astrbot-4.1.5 → astrbot-4.1.7}/astrbot/core/pipeline/stage.py +0 -0
- {astrbot-4.1.5 → astrbot-4.1.7}/astrbot/core/pipeline/waking_check/stage.py +0 -0
- {astrbot-4.1.5 → astrbot-4.1.7}/astrbot/core/pipeline/whitelist_check/stage.py +0 -0
- {astrbot-4.1.5 → astrbot-4.1.7}/astrbot/core/platform/__init__.py +0 -0
- {astrbot-4.1.5 → astrbot-4.1.7}/astrbot/core/platform/astr_message_event.py +0 -0
- {astrbot-4.1.5 → astrbot-4.1.7}/astrbot/core/platform/astrbot_message.py +0 -0
- {astrbot-4.1.5 → astrbot-4.1.7}/astrbot/core/platform/manager.py +0 -0
- {astrbot-4.1.5 → astrbot-4.1.7}/astrbot/core/platform/message_session.py +0 -0
- {astrbot-4.1.5 → astrbot-4.1.7}/astrbot/core/platform/message_type.py +0 -0
- {astrbot-4.1.5 → astrbot-4.1.7}/astrbot/core/platform/platform.py +0 -0
- {astrbot-4.1.5 → astrbot-4.1.7}/astrbot/core/platform/platform_metadata.py +0 -0
- {astrbot-4.1.5 → astrbot-4.1.7}/astrbot/core/platform/register.py +0 -0
- {astrbot-4.1.5 → astrbot-4.1.7}/astrbot/core/platform/sources/aiocqhttp/aiocqhttp_message_event.py +0 -0
- {astrbot-4.1.5 → astrbot-4.1.7}/astrbot/core/platform/sources/aiocqhttp/aiocqhttp_platform_adapter.py +0 -0
- {astrbot-4.1.5 → astrbot-4.1.7}/astrbot/core/platform/sources/dingtalk/dingtalk_adapter.py +0 -0
- {astrbot-4.1.5 → astrbot-4.1.7}/astrbot/core/platform/sources/dingtalk/dingtalk_event.py +0 -0
- {astrbot-4.1.5 → astrbot-4.1.7}/astrbot/core/platform/sources/discord/client.py +0 -0
- {astrbot-4.1.5 → astrbot-4.1.7}/astrbot/core/platform/sources/discord/components.py +0 -0
- {astrbot-4.1.5 → astrbot-4.1.7}/astrbot/core/platform/sources/discord/discord_platform_adapter.py +0 -0
- {astrbot-4.1.5 → astrbot-4.1.7}/astrbot/core/platform/sources/discord/discord_platform_event.py +0 -0
- {astrbot-4.1.5 → astrbot-4.1.7}/astrbot/core/platform/sources/lark/lark_adapter.py +0 -0
- {astrbot-4.1.5 → astrbot-4.1.7}/astrbot/core/platform/sources/lark/lark_event.py +0 -0
- {astrbot-4.1.5 → astrbot-4.1.7}/astrbot/core/platform/sources/misskey/misskey_adapter.py +0 -0
- {astrbot-4.1.5 → astrbot-4.1.7}/astrbot/core/platform/sources/misskey/misskey_api.py +0 -0
- {astrbot-4.1.5 → astrbot-4.1.7}/astrbot/core/platform/sources/misskey/misskey_event.py +0 -0
- {astrbot-4.1.5 → astrbot-4.1.7}/astrbot/core/platform/sources/misskey/misskey_utils.py +0 -0
- {astrbot-4.1.5 → astrbot-4.1.7}/astrbot/core/platform/sources/qqofficial/qqofficial_message_event.py +0 -0
- {astrbot-4.1.5 → astrbot-4.1.7}/astrbot/core/platform/sources/qqofficial/qqofficial_platform_adapter.py +0 -0
- {astrbot-4.1.5 → astrbot-4.1.7}/astrbot/core/platform/sources/qqofficial_webhook/qo_webhook_adapter.py +0 -0
- {astrbot-4.1.5 → astrbot-4.1.7}/astrbot/core/platform/sources/qqofficial_webhook/qo_webhook_event.py +0 -0
- {astrbot-4.1.5 → astrbot-4.1.7}/astrbot/core/platform/sources/qqofficial_webhook/qo_webhook_server.py +0 -0
- {astrbot-4.1.5 → astrbot-4.1.7}/astrbot/core/platform/sources/satori/satori_adapter.py +0 -0
- {astrbot-4.1.5 → astrbot-4.1.7}/astrbot/core/platform/sources/satori/satori_event.py +0 -0
- {astrbot-4.1.5 → astrbot-4.1.7}/astrbot/core/platform/sources/slack/client.py +0 -0
- {astrbot-4.1.5 → astrbot-4.1.7}/astrbot/core/platform/sources/slack/slack_adapter.py +0 -0
- {astrbot-4.1.5 → astrbot-4.1.7}/astrbot/core/platform/sources/slack/slack_event.py +0 -0
- {astrbot-4.1.5 → astrbot-4.1.7}/astrbot/core/platform/sources/telegram/tg_adapter.py +0 -0
- {astrbot-4.1.5 → astrbot-4.1.7}/astrbot/core/platform/sources/telegram/tg_event.py +0 -0
- {astrbot-4.1.5 → astrbot-4.1.7}/astrbot/core/platform/sources/webchat/webchat_adapter.py +0 -0
- {astrbot-4.1.5 → astrbot-4.1.7}/astrbot/core/platform/sources/webchat/webchat_event.py +0 -0
- {astrbot-4.1.5 → astrbot-4.1.7}/astrbot/core/platform/sources/webchat/webchat_queue_mgr.py +0 -0
- {astrbot-4.1.5 → astrbot-4.1.7}/astrbot/core/platform/sources/wechatpadpro/wechatpadpro_adapter.py +0 -0
- {astrbot-4.1.5 → astrbot-4.1.7}/astrbot/core/platform/sources/wechatpadpro/wechatpadpro_message_event.py +0 -0
- {astrbot-4.1.5 → astrbot-4.1.7}/astrbot/core/platform/sources/wechatpadpro/xml_data_parser.py +0 -0
- {astrbot-4.1.5 → astrbot-4.1.7}/astrbot/core/platform/sources/wecom/wecom_adapter.py +0 -0
- {astrbot-4.1.5 → astrbot-4.1.7}/astrbot/core/platform/sources/wecom/wecom_event.py +0 -0
- {astrbot-4.1.5 → astrbot-4.1.7}/astrbot/core/platform/sources/wecom/wecom_kf.py +0 -0
- {astrbot-4.1.5 → astrbot-4.1.7}/astrbot/core/platform/sources/wecom/wecom_kf_message.py +0 -0
- {astrbot-4.1.5 → astrbot-4.1.7}/astrbot/core/platform/sources/weixin_official_account/weixin_offacc_adapter.py +0 -0
- {astrbot-4.1.5 → astrbot-4.1.7}/astrbot/core/platform/sources/weixin_official_account/weixin_offacc_event.py +0 -0
- {astrbot-4.1.5 → astrbot-4.1.7}/astrbot/core/platform_message_history_mgr.py +0 -0
- {astrbot-4.1.5 → astrbot-4.1.7}/astrbot/core/provider/__init__.py +0 -0
- {astrbot-4.1.5 → astrbot-4.1.7}/astrbot/core/provider/entites.py +0 -0
- {astrbot-4.1.5 → astrbot-4.1.7}/astrbot/core/provider/entities.py +0 -0
- {astrbot-4.1.5 → astrbot-4.1.7}/astrbot/core/provider/func_tool_manager.py +0 -0
- {astrbot-4.1.5 → astrbot-4.1.7}/astrbot/core/provider/provider.py +0 -0
- {astrbot-4.1.5 → astrbot-4.1.7}/astrbot/core/provider/register.py +0 -0
- {astrbot-4.1.5 → astrbot-4.1.7}/astrbot/core/provider/sources/anthropic_source.py +0 -0
- {astrbot-4.1.5 → astrbot-4.1.7}/astrbot/core/provider/sources/azure_tts_source.py +0 -0
- {astrbot-4.1.5 → astrbot-4.1.7}/astrbot/core/provider/sources/dashscope_source.py +0 -0
- {astrbot-4.1.5 → astrbot-4.1.7}/astrbot/core/provider/sources/dashscope_tts.py +0 -0
- {astrbot-4.1.5 → astrbot-4.1.7}/astrbot/core/provider/sources/dify_source.py +0 -0
- {astrbot-4.1.5 → astrbot-4.1.7}/astrbot/core/provider/sources/edge_tts_source.py +0 -0
- {astrbot-4.1.5 → astrbot-4.1.7}/astrbot/core/provider/sources/fishaudio_tts_api_source.py +0 -0
- {astrbot-4.1.5 → astrbot-4.1.7}/astrbot/core/provider/sources/gemini_embedding_source.py +0 -0
- {astrbot-4.1.5 → astrbot-4.1.7}/astrbot/core/provider/sources/gemini_source.py +0 -0
- {astrbot-4.1.5 → astrbot-4.1.7}/astrbot/core/provider/sources/gemini_tts_source.py +0 -0
- {astrbot-4.1.5 → astrbot-4.1.7}/astrbot/core/provider/sources/gsv_selfhosted_source.py +0 -0
- {astrbot-4.1.5 → astrbot-4.1.7}/astrbot/core/provider/sources/gsvi_tts_source.py +0 -0
- {astrbot-4.1.5 → astrbot-4.1.7}/astrbot/core/provider/sources/minimax_tts_api_source.py +0 -0
- {astrbot-4.1.5 → astrbot-4.1.7}/astrbot/core/provider/sources/openai_embedding_source.py +0 -0
- {astrbot-4.1.5 → astrbot-4.1.7}/astrbot/core/provider/sources/openai_source.py +0 -0
- {astrbot-4.1.5 → astrbot-4.1.7}/astrbot/core/provider/sources/openai_tts_api_source.py +0 -0
- {astrbot-4.1.5 → astrbot-4.1.7}/astrbot/core/provider/sources/sensevoice_selfhosted_source.py +0 -0
- {astrbot-4.1.5 → astrbot-4.1.7}/astrbot/core/provider/sources/vllm_rerank_source.py +0 -0
- {astrbot-4.1.5 → astrbot-4.1.7}/astrbot/core/provider/sources/volcengine_tts.py +0 -0
- {astrbot-4.1.5 → astrbot-4.1.7}/astrbot/core/provider/sources/whisper_api_source.py +0 -0
- {astrbot-4.1.5 → astrbot-4.1.7}/astrbot/core/provider/sources/whisper_selfhosted_source.py +0 -0
- {astrbot-4.1.5 → astrbot-4.1.7}/astrbot/core/provider/sources/zhipu_source.py +0 -0
- {astrbot-4.1.5 → astrbot-4.1.7}/astrbot/core/star/README.md +0 -0
- {astrbot-4.1.5 → astrbot-4.1.7}/astrbot/core/star/__init__.py +0 -0
- {astrbot-4.1.5 → astrbot-4.1.7}/astrbot/core/star/config.py +0 -0
- {astrbot-4.1.5 → astrbot-4.1.7}/astrbot/core/star/filter/__init__.py +0 -0
- {astrbot-4.1.5 → astrbot-4.1.7}/astrbot/core/star/filter/command.py +0 -0
- {astrbot-4.1.5 → astrbot-4.1.7}/astrbot/core/star/filter/command_group.py +0 -0
- {astrbot-4.1.5 → astrbot-4.1.7}/astrbot/core/star/filter/custom_filter.py +0 -0
- {astrbot-4.1.5 → astrbot-4.1.7}/astrbot/core/star/filter/event_message_type.py +0 -0
- {astrbot-4.1.5 → astrbot-4.1.7}/astrbot/core/star/filter/permission.py +0 -0
- {astrbot-4.1.5 → astrbot-4.1.7}/astrbot/core/star/filter/platform_adapter_type.py +0 -0
- {astrbot-4.1.5 → astrbot-4.1.7}/astrbot/core/star/filter/regex.py +0 -0
- {astrbot-4.1.5 → astrbot-4.1.7}/astrbot/core/star/register/__init__.py +0 -0
- {astrbot-4.1.5 → astrbot-4.1.7}/astrbot/core/star/register/star.py +0 -0
- {astrbot-4.1.5 → astrbot-4.1.7}/astrbot/core/star/register/star_handler.py +0 -0
- {astrbot-4.1.5 → astrbot-4.1.7}/astrbot/core/star/session_llm_manager.py +0 -0
- {astrbot-4.1.5 → astrbot-4.1.7}/astrbot/core/star/session_plugin_manager.py +0 -0
- {astrbot-4.1.5 → astrbot-4.1.7}/astrbot/core/star/star.py +0 -0
- {astrbot-4.1.5 → astrbot-4.1.7}/astrbot/core/star/star_handler.py +0 -0
- {astrbot-4.1.5 → astrbot-4.1.7}/astrbot/core/star/star_manager.py +0 -0
- {astrbot-4.1.5 → astrbot-4.1.7}/astrbot/core/star/star_tools.py +0 -0
- {astrbot-4.1.5 → astrbot-4.1.7}/astrbot/core/star/updator.py +0 -0
- {astrbot-4.1.5 → astrbot-4.1.7}/astrbot/core/updator.py +0 -0
- {astrbot-4.1.5 → astrbot-4.1.7}/astrbot/core/utils/astrbot_path.py +0 -0
- {astrbot-4.1.5 → astrbot-4.1.7}/astrbot/core/utils/command_parser.py +0 -0
- {astrbot-4.1.5 → astrbot-4.1.7}/astrbot/core/utils/dify_api_client.py +0 -0
- {astrbot-4.1.5 → astrbot-4.1.7}/astrbot/core/utils/log_pipe.py +0 -0
- {astrbot-4.1.5 → astrbot-4.1.7}/astrbot/core/utils/metrics.py +0 -0
- {astrbot-4.1.5 → astrbot-4.1.7}/astrbot/core/utils/path_util.py +0 -0
- {astrbot-4.1.5 → astrbot-4.1.7}/astrbot/core/utils/pip_installer.py +0 -0
- {astrbot-4.1.5 → astrbot-4.1.7}/astrbot/core/utils/session_lock.py +0 -0
- {astrbot-4.1.5 → astrbot-4.1.7}/astrbot/core/utils/session_waiter.py +0 -0
- {astrbot-4.1.5 → astrbot-4.1.7}/astrbot/core/utils/shared_preferences.py +0 -0
- {astrbot-4.1.5 → astrbot-4.1.7}/astrbot/core/utils/t2i/__init__.py +0 -0
- {astrbot-4.1.5 → astrbot-4.1.7}/astrbot/core/utils/t2i/local_strategy.py +0 -0
- {astrbot-4.1.5 → astrbot-4.1.7}/astrbot/core/utils/t2i/network_strategy.py +0 -0
- {astrbot-4.1.5 → astrbot-4.1.7}/astrbot/core/utils/t2i/renderer.py +0 -0
- {astrbot-4.1.5 → astrbot-4.1.7}/astrbot/core/utils/t2i/template/astrbot_powershell.html +0 -0
- {astrbot-4.1.5 → astrbot-4.1.7}/astrbot/core/utils/t2i/template/base.html +0 -0
- {astrbot-4.1.5 → astrbot-4.1.7}/astrbot/core/utils/t2i/template_manager.py +0 -0
- {astrbot-4.1.5 → astrbot-4.1.7}/astrbot/core/utils/tencent_record_helper.py +0 -0
- {astrbot-4.1.5 → astrbot-4.1.7}/astrbot/core/utils/version_comparator.py +0 -0
- {astrbot-4.1.5 → astrbot-4.1.7}/astrbot/core/zip_updator.py +0 -0
- {astrbot-4.1.5 → astrbot-4.1.7}/astrbot/dashboard/routes/__init__.py +0 -0
- {astrbot-4.1.5 → astrbot-4.1.7}/astrbot/dashboard/routes/auth.py +0 -0
- {astrbot-4.1.5 → astrbot-4.1.7}/astrbot/dashboard/routes/chat.py +0 -0
- {astrbot-4.1.5 → astrbot-4.1.7}/astrbot/dashboard/routes/file.py +0 -0
- {astrbot-4.1.5 → astrbot-4.1.7}/astrbot/dashboard/routes/log.py +0 -0
- {astrbot-4.1.5 → astrbot-4.1.7}/astrbot/dashboard/routes/persona.py +0 -0
- {astrbot-4.1.5 → astrbot-4.1.7}/astrbot/dashboard/routes/plugin.py +0 -0
- {astrbot-4.1.5 → astrbot-4.1.7}/astrbot/dashboard/routes/route.py +0 -0
- {astrbot-4.1.5 → astrbot-4.1.7}/astrbot/dashboard/routes/session_management.py +0 -0
- {astrbot-4.1.5 → astrbot-4.1.7}/astrbot/dashboard/routes/stat.py +0 -0
- {astrbot-4.1.5 → astrbot-4.1.7}/astrbot/dashboard/routes/static_file.py +0 -0
- {astrbot-4.1.5 → astrbot-4.1.7}/astrbot/dashboard/routes/t2i.py +0 -0
- {astrbot-4.1.5 → astrbot-4.1.7}/astrbot/dashboard/routes/tools.py +0 -0
- {astrbot-4.1.5 → astrbot-4.1.7}/astrbot/dashboard/routes/update.py +0 -0
- {astrbot-4.1.5 → astrbot-4.1.7}/astrbot/dashboard/server.py +0 -0
- {astrbot-4.1.5 → astrbot-4.1.7}/changelogs/v3.4.0.md +0 -0
- {astrbot-4.1.5 → astrbot-4.1.7}/changelogs/v3.4.1.md +0 -0
- {astrbot-4.1.5 → astrbot-4.1.7}/changelogs/v3.4.10.md +0 -0
- {astrbot-4.1.5 → astrbot-4.1.7}/changelogs/v3.4.11.md +0 -0
- {astrbot-4.1.5 → astrbot-4.1.7}/changelogs/v3.4.12.md +0 -0
- {astrbot-4.1.5 → astrbot-4.1.7}/changelogs/v3.4.13.md +0 -0
- {astrbot-4.1.5 → astrbot-4.1.7}/changelogs/v3.4.14.md +0 -0
- {astrbot-4.1.5 → astrbot-4.1.7}/changelogs/v3.4.15.md +0 -0
- {astrbot-4.1.5 → astrbot-4.1.7}/changelogs/v3.4.16.md +0 -0
- {astrbot-4.1.5 → astrbot-4.1.7}/changelogs/v3.4.17.md +0 -0
- {astrbot-4.1.5 → astrbot-4.1.7}/changelogs/v3.4.18.md +0 -0
- {astrbot-4.1.5 → astrbot-4.1.7}/changelogs/v3.4.19.md +0 -0
- {astrbot-4.1.5 → astrbot-4.1.7}/changelogs/v3.4.20.md +0 -0
- {astrbot-4.1.5 → astrbot-4.1.7}/changelogs/v3.4.21.md +0 -0
- {astrbot-4.1.5 → astrbot-4.1.7}/changelogs/v3.4.22.md +0 -0
- {astrbot-4.1.5 → astrbot-4.1.7}/changelogs/v3.4.23.md +0 -0
- {astrbot-4.1.5 → astrbot-4.1.7}/changelogs/v3.4.24.md +0 -0
- {astrbot-4.1.5 → astrbot-4.1.7}/changelogs/v3.4.25.md +0 -0
- {astrbot-4.1.5 → astrbot-4.1.7}/changelogs/v3.4.26.md +0 -0
- {astrbot-4.1.5 → astrbot-4.1.7}/changelogs/v3.4.27.md +0 -0
- {astrbot-4.1.5 → astrbot-4.1.7}/changelogs/v3.4.28.md +0 -0
- {astrbot-4.1.5 → astrbot-4.1.7}/changelogs/v3.4.29.md +0 -0
- {astrbot-4.1.5 → astrbot-4.1.7}/changelogs/v3.4.3.md +0 -0
- {astrbot-4.1.5 → astrbot-4.1.7}/changelogs/v3.4.30.md +0 -0
- {astrbot-4.1.5 → astrbot-4.1.7}/changelogs/v3.4.31.md +0 -0
- {astrbot-4.1.5 → astrbot-4.1.7}/changelogs/v3.4.32.md +0 -0
- {astrbot-4.1.5 → astrbot-4.1.7}/changelogs/v3.4.33.md +0 -0
- {astrbot-4.1.5 → astrbot-4.1.7}/changelogs/v3.4.35.md +0 -0
- {astrbot-4.1.5 → astrbot-4.1.7}/changelogs/v3.4.36.md +0 -0
- {astrbot-4.1.5 → astrbot-4.1.7}/changelogs/v3.4.37.md +0 -0
- {astrbot-4.1.5 → astrbot-4.1.7}/changelogs/v3.4.38.md +0 -0
- {astrbot-4.1.5 → astrbot-4.1.7}/changelogs/v3.4.39.md +0 -0
- {astrbot-4.1.5 → astrbot-4.1.7}/changelogs/v3.4.4.md +0 -0
- {astrbot-4.1.5 → astrbot-4.1.7}/changelogs/v3.4.5.md +0 -0
- {astrbot-4.1.5 → astrbot-4.1.7}/changelogs/v3.4.6.md +0 -0
- {astrbot-4.1.5 → astrbot-4.1.7}/changelogs/v3.4.7.md +0 -0
- {astrbot-4.1.5 → astrbot-4.1.7}/changelogs/v3.4.8.md +0 -0
- {astrbot-4.1.5 → astrbot-4.1.7}/changelogs/v3.4.9.md +0 -0
- {astrbot-4.1.5 → astrbot-4.1.7}/changelogs/v3.5.0.md +0 -0
- {astrbot-4.1.5 → astrbot-4.1.7}/changelogs/v3.5.1.md +0 -0
- {astrbot-4.1.5 → astrbot-4.1.7}/changelogs/v3.5.10.md +0 -0
- {astrbot-4.1.5 → astrbot-4.1.7}/changelogs/v3.5.11.md +0 -0
- {astrbot-4.1.5 → astrbot-4.1.7}/changelogs/v3.5.12.md +0 -0
- {astrbot-4.1.5 → astrbot-4.1.7}/changelogs/v3.5.13.md +0 -0
- {astrbot-4.1.5 → astrbot-4.1.7}/changelogs/v3.5.14.md +0 -0
- {astrbot-4.1.5 → astrbot-4.1.7}/changelogs/v3.5.15.md +0 -0
- {astrbot-4.1.5 → astrbot-4.1.7}/changelogs/v3.5.16.md +0 -0
- {astrbot-4.1.5 → astrbot-4.1.7}/changelogs/v3.5.17.md +0 -0
- {astrbot-4.1.5 → astrbot-4.1.7}/changelogs/v3.5.18.md +0 -0
- {astrbot-4.1.5 → astrbot-4.1.7}/changelogs/v3.5.19.md +0 -0
- {astrbot-4.1.5 → astrbot-4.1.7}/changelogs/v3.5.2.md +0 -0
- {astrbot-4.1.5 → astrbot-4.1.7}/changelogs/v3.5.20.md +0 -0
- {astrbot-4.1.5 → astrbot-4.1.7}/changelogs/v3.5.21.md +0 -0
- {astrbot-4.1.5 → astrbot-4.1.7}/changelogs/v3.5.22.md +0 -0
- {astrbot-4.1.5 → astrbot-4.1.7}/changelogs/v3.5.23.md +0 -0
- {astrbot-4.1.5 → astrbot-4.1.7}/changelogs/v3.5.24.md +0 -0
- {astrbot-4.1.5 → astrbot-4.1.7}/changelogs/v3.5.25.md +0 -0
- {astrbot-4.1.5 → astrbot-4.1.7}/changelogs/v3.5.26.md +0 -0
- {astrbot-4.1.5 → astrbot-4.1.7}/changelogs/v3.5.27.md +0 -0
- {astrbot-4.1.5 → astrbot-4.1.7}/changelogs/v3.5.3.1.md +0 -0
- {astrbot-4.1.5 → astrbot-4.1.7}/changelogs/v3.5.3.2.md +0 -0
- {astrbot-4.1.5 → astrbot-4.1.7}/changelogs/v3.5.3.md +0 -0
- {astrbot-4.1.5 → astrbot-4.1.7}/changelogs/v3.5.4.md +0 -0
- {astrbot-4.1.5 → astrbot-4.1.7}/changelogs/v3.5.5.md +0 -0
- {astrbot-4.1.5 → astrbot-4.1.7}/changelogs/v3.5.6.md +0 -0
- {astrbot-4.1.5 → astrbot-4.1.7}/changelogs/v3.5.7.md +0 -0
- {astrbot-4.1.5 → astrbot-4.1.7}/changelogs/v3.5.8.md +0 -0
- {astrbot-4.1.5 → astrbot-4.1.7}/changelogs/v3.5.9.md +0 -0
- {astrbot-4.1.5 → astrbot-4.1.7}/changelogs/v4.0.0-beta.3.md +0 -0
- {astrbot-4.1.5 → astrbot-4.1.7}/changelogs/v4.0.0-beta.4.md +0 -0
- {astrbot-4.1.5 → astrbot-4.1.7}/changelogs/v4.0.0-beta.5.md +0 -0
- {astrbot-4.1.5 → astrbot-4.1.7}/changelogs/v4.0.0.md +0 -0
- {astrbot-4.1.5 → astrbot-4.1.7}/changelogs/v4.1.0.md +0 -0
- {astrbot-4.1.5 → astrbot-4.1.7}/changelogs/v4.1.1.md +0 -0
- {astrbot-4.1.5 → astrbot-4.1.7}/changelogs/v4.1.2.md +0 -0
- {astrbot-4.1.5 → astrbot-4.1.7}/changelogs/v4.1.3.md +0 -0
- {astrbot-4.1.5 → astrbot-4.1.7}/changelogs/v4.1.4.md +0 -0
- {astrbot-4.1.5 → astrbot-4.1.7}/changelogs/v4.1.5.md +0 -0
- {astrbot-4.1.5 → astrbot-4.1.7}/compose.yml +0 -0
- {astrbot-4.1.5 → astrbot-4.1.7}/dashboard/.gitignore +0 -0
- {astrbot-4.1.5 → astrbot-4.1.7}/dashboard/LICENSE +0 -0
- {astrbot-4.1.5 → astrbot-4.1.7}/dashboard/README.md +0 -0
- {astrbot-4.1.5 → astrbot-4.1.7}/dashboard/env.d.ts +0 -0
- {astrbot-4.1.5 → astrbot-4.1.7}/dashboard/index.html +0 -0
- {astrbot-4.1.5 → astrbot-4.1.7}/dashboard/public/_redirects +0 -0
- {astrbot-4.1.5 → astrbot-4.1.7}/dashboard/public/favicon.svg +0 -0
- {astrbot-4.1.5 → astrbot-4.1.7}/dashboard/src/App.vue +0 -0
- {astrbot-4.1.5 → astrbot-4.1.7}/dashboard/src/assets/images/astrbot_banner.png +0 -0
- {astrbot-4.1.5 → astrbot-4.1.7}/dashboard/src/assets/images/astrbot_logo_mini.webp +0 -0
- {astrbot-4.1.5 → astrbot-4.1.7}/dashboard/src/assets/images/platform_logos/dingtalk.svg +0 -0
- {astrbot-4.1.5 → astrbot-4.1.7}/dashboard/src/assets/images/platform_logos/discord.svg +0 -0
- {astrbot-4.1.5 → astrbot-4.1.7}/dashboard/src/assets/images/platform_logos/kook.png +0 -0
- {astrbot-4.1.5 → astrbot-4.1.7}/dashboard/src/assets/images/platform_logos/lark.png +0 -0
- {astrbot-4.1.5 → astrbot-4.1.7}/dashboard/src/assets/images/platform_logos/misskey.png +0 -0
- {astrbot-4.1.5 → astrbot-4.1.7}/dashboard/src/assets/images/platform_logos/qq.png +0 -0
- {astrbot-4.1.5 → astrbot-4.1.7}/dashboard/src/assets/images/platform_logos/satori.png +0 -0
- {astrbot-4.1.5 → astrbot-4.1.7}/dashboard/src/assets/images/platform_logos/slack.svg +0 -0
- {astrbot-4.1.5 → astrbot-4.1.7}/dashboard/src/assets/images/platform_logos/telegram.svg +0 -0
- {astrbot-4.1.5 → astrbot-4.1.7}/dashboard/src/assets/images/platform_logos/vocechat.png +0 -0
- {astrbot-4.1.5 → astrbot-4.1.7}/dashboard/src/assets/images/platform_logos/wechat.png +0 -0
- {astrbot-4.1.5 → astrbot-4.1.7}/dashboard/src/assets/images/platform_logos/wecom.png +0 -0
- {astrbot-4.1.5 → astrbot-4.1.7}/dashboard/src/components/ConfirmDialog.vue +0 -0
- {astrbot-4.1.5 → astrbot-4.1.7}/dashboard/src/components/shared/AstrBotConfig.vue +0 -0
- {astrbot-4.1.5 → astrbot-4.1.7}/dashboard/src/components/shared/AstrBotConfigV4.vue +0 -0
- {astrbot-4.1.5 → astrbot-4.1.7}/dashboard/src/components/shared/ConsoleDisplayer.vue +0 -0
- {astrbot-4.1.5 → astrbot-4.1.7}/dashboard/src/components/shared/ExtensionCard.vue +0 -0
- {astrbot-4.1.5 → astrbot-4.1.7}/dashboard/src/components/shared/ItemCard.vue +0 -0
- {astrbot-4.1.5 → astrbot-4.1.7}/dashboard/src/components/shared/ItemCardGrid.vue +0 -0
- {astrbot-4.1.5 → astrbot-4.1.7}/dashboard/src/components/shared/KnowledgeBaseSelector.vue +0 -0
- {astrbot-4.1.5 → astrbot-4.1.7}/dashboard/src/components/shared/LanguageSwitcher.vue +0 -0
- {astrbot-4.1.5 → astrbot-4.1.7}/dashboard/src/components/shared/ListConfigItem.vue +0 -0
- {astrbot-4.1.5 → astrbot-4.1.7}/dashboard/src/components/shared/Logo.vue +0 -0
- {astrbot-4.1.5 → astrbot-4.1.7}/dashboard/src/components/shared/MigrationDialog.vue +0 -0
- {astrbot-4.1.5 → astrbot-4.1.7}/dashboard/src/components/shared/ObjectEditor.vue +0 -0
- {astrbot-4.1.5 → astrbot-4.1.7}/dashboard/src/components/shared/PersonaSelector.vue +0 -0
- {astrbot-4.1.5 → astrbot-4.1.7}/dashboard/src/components/shared/PluginSetSelector.vue +0 -0
- {astrbot-4.1.5 → astrbot-4.1.7}/dashboard/src/components/shared/ProviderSelector.vue +0 -0
- {astrbot-4.1.5 → astrbot-4.1.7}/dashboard/src/components/shared/ProxySelector.vue +0 -0
- {astrbot-4.1.5 → astrbot-4.1.7}/dashboard/src/components/shared/ReadmeDialog.vue +0 -0
- {astrbot-4.1.5 → astrbot-4.1.7}/dashboard/src/components/shared/T2ITemplateEditor.vue +0 -0
- {astrbot-4.1.5 → astrbot-4.1.7}/dashboard/src/components/shared/WaitingForRestart.vue +0 -0
- {astrbot-4.1.5 → astrbot-4.1.7}/dashboard/src/config.ts +0 -0
- {astrbot-4.1.5 → astrbot-4.1.7}/dashboard/src/i18n/composables.ts +0 -0
- {astrbot-4.1.5 → astrbot-4.1.7}/dashboard/src/i18n/loader.ts +0 -0
- {astrbot-4.1.5 → astrbot-4.1.7}/dashboard/src/i18n/locales/en-US/core/actions.json +0 -0
- {astrbot-4.1.5 → astrbot-4.1.7}/dashboard/src/i18n/locales/en-US/core/common.json +0 -0
- {astrbot-4.1.5 → astrbot-4.1.7}/dashboard/src/i18n/locales/en-US/core/header.json +0 -0
- {astrbot-4.1.5 → astrbot-4.1.7}/dashboard/src/i18n/locales/en-US/core/navigation.json +0 -0
- {astrbot-4.1.5 → astrbot-4.1.7}/dashboard/src/i18n/locales/en-US/core/status.json +0 -0
- {astrbot-4.1.5 → astrbot-4.1.7}/dashboard/src/i18n/locales/en-US/features/about.json +0 -0
- {astrbot-4.1.5 → astrbot-4.1.7}/dashboard/src/i18n/locales/en-US/features/alkaid/index.json +0 -0
- {astrbot-4.1.5 → astrbot-4.1.7}/dashboard/src/i18n/locales/en-US/features/alkaid/knowledge-base.json +0 -0
- {astrbot-4.1.5 → astrbot-4.1.7}/dashboard/src/i18n/locales/en-US/features/alkaid/memory.json +0 -0
- {astrbot-4.1.5 → astrbot-4.1.7}/dashboard/src/i18n/locales/en-US/features/auth.json +0 -0
- {astrbot-4.1.5 → astrbot-4.1.7}/dashboard/src/i18n/locales/en-US/features/chart.json +0 -0
- {astrbot-4.1.5 → astrbot-4.1.7}/dashboard/src/i18n/locales/en-US/features/chat.json +0 -0
- {astrbot-4.1.5 → astrbot-4.1.7}/dashboard/src/i18n/locales/en-US/features/config.json +0 -0
- {astrbot-4.1.5 → astrbot-4.1.7}/dashboard/src/i18n/locales/en-US/features/console.json +0 -0
- {astrbot-4.1.5 → astrbot-4.1.7}/dashboard/src/i18n/locales/en-US/features/dashboard.json +0 -0
- {astrbot-4.1.5 → astrbot-4.1.7}/dashboard/src/i18n/locales/en-US/features/extension.json +0 -0
- {astrbot-4.1.5 → astrbot-4.1.7}/dashboard/src/i18n/locales/en-US/features/migration.json +0 -0
- {astrbot-4.1.5 → astrbot-4.1.7}/dashboard/src/i18n/locales/en-US/features/persona.json +0 -0
- {astrbot-4.1.5 → astrbot-4.1.7}/dashboard/src/i18n/locales/en-US/features/platform.json +0 -0
- {astrbot-4.1.5 → astrbot-4.1.7}/dashboard/src/i18n/locales/en-US/features/provider.json +0 -0
- {astrbot-4.1.5 → astrbot-4.1.7}/dashboard/src/i18n/locales/en-US/features/session-management.json +0 -0
- {astrbot-4.1.5 → astrbot-4.1.7}/dashboard/src/i18n/locales/en-US/features/settings.json +0 -0
- {astrbot-4.1.5 → astrbot-4.1.7}/dashboard/src/i18n/locales/en-US/features/tool-use.json +0 -0
- {astrbot-4.1.5 → astrbot-4.1.7}/dashboard/src/i18n/locales/en-US/messages/errors.json +0 -0
- {astrbot-4.1.5 → astrbot-4.1.7}/dashboard/src/i18n/locales/en-US/messages/success.json +0 -0
- {astrbot-4.1.5 → astrbot-4.1.7}/dashboard/src/i18n/locales/en-US/messages/validation.json +0 -0
- {astrbot-4.1.5 → astrbot-4.1.7}/dashboard/src/i18n/locales/zh-CN/core/actions.json +0 -0
- {astrbot-4.1.5 → astrbot-4.1.7}/dashboard/src/i18n/locales/zh-CN/core/common.json +0 -0
- {astrbot-4.1.5 → astrbot-4.1.7}/dashboard/src/i18n/locales/zh-CN/core/header.json +0 -0
- {astrbot-4.1.5 → astrbot-4.1.7}/dashboard/src/i18n/locales/zh-CN/core/navigation.json +0 -0
- {astrbot-4.1.5 → astrbot-4.1.7}/dashboard/src/i18n/locales/zh-CN/core/status.json +0 -0
- {astrbot-4.1.5 → astrbot-4.1.7}/dashboard/src/i18n/locales/zh-CN/features/about.json +0 -0
- {astrbot-4.1.5 → astrbot-4.1.7}/dashboard/src/i18n/locales/zh-CN/features/alkaid/index.json +0 -0
- {astrbot-4.1.5 → astrbot-4.1.7}/dashboard/src/i18n/locales/zh-CN/features/alkaid/knowledge-base.json +0 -0
- {astrbot-4.1.5 → astrbot-4.1.7}/dashboard/src/i18n/locales/zh-CN/features/alkaid/memory.json +0 -0
- {astrbot-4.1.5 → astrbot-4.1.7}/dashboard/src/i18n/locales/zh-CN/features/auth.json +0 -0
- {astrbot-4.1.5 → astrbot-4.1.7}/dashboard/src/i18n/locales/zh-CN/features/chart.json +0 -0
- {astrbot-4.1.5 → astrbot-4.1.7}/dashboard/src/i18n/locales/zh-CN/features/chat.json +0 -0
- {astrbot-4.1.5 → astrbot-4.1.7}/dashboard/src/i18n/locales/zh-CN/features/config.json +0 -0
- {astrbot-4.1.5 → astrbot-4.1.7}/dashboard/src/i18n/locales/zh-CN/features/console.json +0 -0
- {astrbot-4.1.5 → astrbot-4.1.7}/dashboard/src/i18n/locales/zh-CN/features/dashboard.json +0 -0
- {astrbot-4.1.5 → astrbot-4.1.7}/dashboard/src/i18n/locales/zh-CN/features/extension.json +0 -0
- {astrbot-4.1.5 → astrbot-4.1.7}/dashboard/src/i18n/locales/zh-CN/features/migration.json +0 -0
- {astrbot-4.1.5 → astrbot-4.1.7}/dashboard/src/i18n/locales/zh-CN/features/persona.json +0 -0
- {astrbot-4.1.5 → astrbot-4.1.7}/dashboard/src/i18n/locales/zh-CN/features/platform.json +0 -0
- {astrbot-4.1.5 → astrbot-4.1.7}/dashboard/src/i18n/locales/zh-CN/features/provider.json +0 -0
- {astrbot-4.1.5 → astrbot-4.1.7}/dashboard/src/i18n/locales/zh-CN/features/session-management.json +0 -0
- {astrbot-4.1.5 → astrbot-4.1.7}/dashboard/src/i18n/locales/zh-CN/features/settings.json +0 -0
- {astrbot-4.1.5 → astrbot-4.1.7}/dashboard/src/i18n/locales/zh-CN/features/tool-use.json +0 -0
- {astrbot-4.1.5 → astrbot-4.1.7}/dashboard/src/i18n/locales/zh-CN/messages/errors.json +0 -0
- {astrbot-4.1.5 → astrbot-4.1.7}/dashboard/src/i18n/locales/zh-CN/messages/success.json +0 -0
- {astrbot-4.1.5 → astrbot-4.1.7}/dashboard/src/i18n/locales/zh-CN/messages/validation.json +0 -0
- {astrbot-4.1.5 → astrbot-4.1.7}/dashboard/src/i18n/tools/index.ts +0 -0
- {astrbot-4.1.5 → astrbot-4.1.7}/dashboard/src/i18n/translations.ts +0 -0
- {astrbot-4.1.5 → astrbot-4.1.7}/dashboard/src/i18n/types.ts +0 -0
- {astrbot-4.1.5 → astrbot-4.1.7}/dashboard/src/i18n/validator.ts +0 -0
- {astrbot-4.1.5 → astrbot-4.1.7}/dashboard/src/layouts/blank/BlankLayout.vue +0 -0
- {astrbot-4.1.5 → astrbot-4.1.7}/dashboard/src/layouts/full/FullLayout.vue +0 -0
- {astrbot-4.1.5 → astrbot-4.1.7}/dashboard/src/layouts/full/vertical-sidebar/NavItem.vue +0 -0
- {astrbot-4.1.5 → astrbot-4.1.7}/dashboard/src/layouts/full/vertical-sidebar/VerticalSidebar.vue +0 -0
- {astrbot-4.1.5 → astrbot-4.1.7}/dashboard/src/layouts/full/vertical-sidebar/sidebarItem.ts +0 -0
- {astrbot-4.1.5 → astrbot-4.1.7}/dashboard/src/main.ts +0 -0
- {astrbot-4.1.5 → astrbot-4.1.7}/dashboard/src/plugins/confirmPlugin.ts +0 -0
- {astrbot-4.1.5 → astrbot-4.1.7}/dashboard/src/plugins/vuetify.ts +0 -0
- {astrbot-4.1.5 → astrbot-4.1.7}/dashboard/src/router/AuthRoutes.ts +0 -0
- {astrbot-4.1.5 → astrbot-4.1.7}/dashboard/src/router/ChatBoxRoutes.ts +0 -0
- {astrbot-4.1.5 → astrbot-4.1.7}/dashboard/src/router/MainRoutes.ts +0 -0
- {astrbot-4.1.5 → astrbot-4.1.7}/dashboard/src/router/index.ts +0 -0
- {astrbot-4.1.5 → astrbot-4.1.7}/dashboard/src/scss/_override.scss +0 -0
- {astrbot-4.1.5 → astrbot-4.1.7}/dashboard/src/scss/_variables.scss +0 -0
- {astrbot-4.1.5 → astrbot-4.1.7}/dashboard/src/scss/components/_VButtons.scss +0 -0
- {astrbot-4.1.5 → astrbot-4.1.7}/dashboard/src/scss/components/_VCard.scss +0 -0
- {astrbot-4.1.5 → astrbot-4.1.7}/dashboard/src/scss/components/_VField.scss +0 -0
- {astrbot-4.1.5 → astrbot-4.1.7}/dashboard/src/scss/components/_VInput.scss +0 -0
- {astrbot-4.1.5 → astrbot-4.1.7}/dashboard/src/scss/components/_VNavigationDrawer.scss +0 -0
- {astrbot-4.1.5 → astrbot-4.1.7}/dashboard/src/scss/components/_VScrollbar.scss +0 -0
- {astrbot-4.1.5 → astrbot-4.1.7}/dashboard/src/scss/components/_VShadow.scss +0 -0
- {astrbot-4.1.5 → astrbot-4.1.7}/dashboard/src/scss/components/_VTabs.scss +0 -0
- {astrbot-4.1.5 → astrbot-4.1.7}/dashboard/src/scss/components/_VTextField.scss +0 -0
- {astrbot-4.1.5 → astrbot-4.1.7}/dashboard/src/scss/layout/_container.scss +0 -0
- {astrbot-4.1.5 → astrbot-4.1.7}/dashboard/src/scss/layout/_sidebar.scss +0 -0
- {astrbot-4.1.5 → astrbot-4.1.7}/dashboard/src/scss/pages/_dashboards.scss +0 -0
- {astrbot-4.1.5 → astrbot-4.1.7}/dashboard/src/scss/style.scss +0 -0
- {astrbot-4.1.5 → astrbot-4.1.7}/dashboard/src/stores/auth.ts +0 -0
- {astrbot-4.1.5 → astrbot-4.1.7}/dashboard/src/stores/common.js +0 -0
- {astrbot-4.1.5 → astrbot-4.1.7}/dashboard/src/stores/customizer.ts +0 -0
- {astrbot-4.1.5 → astrbot-4.1.7}/dashboard/src/theme/DarkTheme.ts +0 -0
- {astrbot-4.1.5 → astrbot-4.1.7}/dashboard/src/theme/LightTheme.ts +0 -0
- {astrbot-4.1.5 → astrbot-4.1.7}/dashboard/src/types/themeTypes/ThemeType.ts +0 -0
- {astrbot-4.1.5 → astrbot-4.1.7}/dashboard/src/types/vue3-print-nb.d.ts +0 -0
- {astrbot-4.1.5 → astrbot-4.1.7}/dashboard/src/types/vue_tabler_icon.d.ts +0 -0
- {astrbot-4.1.5 → astrbot-4.1.7}/dashboard/src/views/AboutPage.vue +0 -0
- {astrbot-4.1.5 → astrbot-4.1.7}/dashboard/src/views/AlkaidPage.vue +0 -0
- {astrbot-4.1.5 → astrbot-4.1.7}/dashboard/src/views/ConfigPage.vue +0 -0
- {astrbot-4.1.5 → astrbot-4.1.7}/dashboard/src/views/ConsolePage.vue +0 -0
- {astrbot-4.1.5 → astrbot-4.1.7}/dashboard/src/views/ExtensionPage.vue +0 -0
- {astrbot-4.1.5 → astrbot-4.1.7}/dashboard/src/views/SessionManagementPage.vue +0 -0
- {astrbot-4.1.5 → astrbot-4.1.7}/dashboard/src/views/Settings.vue +0 -0
- {astrbot-4.1.5 → astrbot-4.1.7}/dashboard/src/views/ToolUsePage.vue +0 -0
- {astrbot-4.1.5 → astrbot-4.1.7}/dashboard/src/views/alkaid/KnowledgeBase.vue +0 -0
- {astrbot-4.1.5 → astrbot-4.1.7}/dashboard/src/views/alkaid/LongTermMemory.vue +0 -0
- {astrbot-4.1.5 → astrbot-4.1.7}/dashboard/src/views/alkaid/Other.vue +0 -0
- {astrbot-4.1.5 → astrbot-4.1.7}/dashboard/src/views/authentication/auth/LoginPage.vue +0 -0
- {astrbot-4.1.5 → astrbot-4.1.7}/dashboard/src/views/authentication/authForms/AuthLogin.vue +0 -0
- {astrbot-4.1.5 → astrbot-4.1.7}/dashboard/src/views/dashboards/default/components/MemoryUsage.vue +0 -0
- {astrbot-4.1.5 → astrbot-4.1.7}/dashboard/src/views/dashboards/default/components/MessageStat.vue +0 -0
- {astrbot-4.1.5 → astrbot-4.1.7}/dashboard/src/views/dashboards/default/components/OnlinePlatform.vue +0 -0
- {astrbot-4.1.5 → astrbot-4.1.7}/dashboard/src/views/dashboards/default/components/OnlineTime.vue +0 -0
- {astrbot-4.1.5 → astrbot-4.1.7}/dashboard/src/views/dashboards/default/components/PlatformStat.vue +0 -0
- {astrbot-4.1.5 → astrbot-4.1.7}/dashboard/src/views/dashboards/default/components/RunningTime.vue +0 -0
- {astrbot-4.1.5 → astrbot-4.1.7}/dashboard/src/views/dashboards/default/components/TotalMessage.vue +0 -0
- {astrbot-4.1.5 → astrbot-4.1.7}/dashboard/tsconfig.json +0 -0
- {astrbot-4.1.5 → astrbot-4.1.7}/dashboard/tsconfig.vite-config.json +0 -0
- {astrbot-4.1.5 → astrbot-4.1.7}/dashboard/vite.config.ts +0 -0
- {astrbot-4.1.5 → astrbot-4.1.7}/main.py +0 -0
- {astrbot-4.1.5 → astrbot-4.1.7}/packages/astrbot/long_term_memory.py +0 -0
- {astrbot-4.1.5 → astrbot-4.1.7}/packages/astrbot/main.py +0 -0
- {astrbot-4.1.5 → astrbot-4.1.7}/packages/astrbot/metadata.yaml +0 -0
- {astrbot-4.1.5 → astrbot-4.1.7}/packages/python_interpreter/main.py +0 -0
- {astrbot-4.1.5 → astrbot-4.1.7}/packages/python_interpreter/metadata.yaml +0 -0
- {astrbot-4.1.5 → astrbot-4.1.7}/packages/python_interpreter/requirements.txt +0 -0
- {astrbot-4.1.5 → astrbot-4.1.7}/packages/python_interpreter/shared/api.py +0 -0
- {astrbot-4.1.5 → astrbot-4.1.7}/packages/reminder/main.py +0 -0
- {astrbot-4.1.5 → astrbot-4.1.7}/packages/reminder/metadata.yaml +0 -0
- {astrbot-4.1.5 → astrbot-4.1.7}/packages/session_controller/main.py +0 -0
- {astrbot-4.1.5 → astrbot-4.1.7}/packages/session_controller/metadata.yaml +0 -0
- {astrbot-4.1.5 → astrbot-4.1.7}/packages/thinking_filter/main.py +0 -0
- {astrbot-4.1.5 → astrbot-4.1.7}/packages/thinking_filter/metadata.yaml +0 -0
- {astrbot-4.1.5 → astrbot-4.1.7}/packages/web_searcher/engines/__init__.py +0 -0
- {astrbot-4.1.5 → astrbot-4.1.7}/packages/web_searcher/engines/bing.py +0 -0
- {astrbot-4.1.5 → astrbot-4.1.7}/packages/web_searcher/engines/google.py +0 -0
- {astrbot-4.1.5 → astrbot-4.1.7}/packages/web_searcher/engines/sogo.py +0 -0
- {astrbot-4.1.5 → astrbot-4.1.7}/packages/web_searcher/main.py +0 -0
- {astrbot-4.1.5 → astrbot-4.1.7}/packages/web_searcher/metadata.yaml +0 -0
- {astrbot-4.1.5 → astrbot-4.1.7}/requirements.txt +0 -0
- {astrbot-4.1.5 → astrbot-4.1.7}/samples/stt_health_check.wav +0 -0
- {astrbot-4.1.5 → astrbot-4.1.7}/tests/test_dashboard.py +0 -0
- {astrbot-4.1.5 → astrbot-4.1.7}/tests/test_main.py +0 -0
- {astrbot-4.1.5 → astrbot-4.1.7}/tests/test_pipeline.py +0 -0
- {astrbot-4.1.5 → astrbot-4.1.7}/tests/test_plugin_manager.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: AstrBot
|
|
3
|
-
Version: 4.1.
|
|
3
|
+
Version: 4.1.7
|
|
4
4
|
Summary: 易上手的多平台 LLM 聊天机器人及开发框架
|
|
5
5
|
License-File: LICENSE
|
|
6
6
|
Requires-Python: >=3.10
|
|
@@ -72,7 +72,8 @@ Description-Content-Type: text/markdown
|
|
|
72
72
|
|
|
73
73
|
<a href="https://github.com/Soulter/AstrBot/blob/master/README_en.md">English</a> |
|
|
74
74
|
<a href="https://github.com/Soulter/AstrBot/blob/master/README_ja.md">日本語</a> |
|
|
75
|
-
<a href="https://astrbot.app/"
|
|
75
|
+
<a href="https://astrbot.app/">文档</a> |
|
|
76
|
+
<a href="https://blog.astrbot.app/">Blog</a> |
|
|
76
77
|
<a href="https://github.com/Soulter/AstrBot/issues">问题提交</a>
|
|
77
78
|
</div>
|
|
78
79
|
|
|
@@ -18,7 +18,8 @@
|
|
|
18
18
|
|
|
19
19
|
<a href="https://github.com/Soulter/AstrBot/blob/master/README_en.md">English</a> |
|
|
20
20
|
<a href="https://github.com/Soulter/AstrBot/blob/master/README_ja.md">日本語</a> |
|
|
21
|
-
<a href="https://astrbot.app/"
|
|
21
|
+
<a href="https://astrbot.app/">文档</a> |
|
|
22
|
+
<a href="https://blog.astrbot.app/">Blog</a> |
|
|
22
23
|
<a href="https://github.com/Soulter/AstrBot/issues">问题提交</a>
|
|
23
24
|
</div>
|
|
24
25
|
|
|
@@ -159,6 +159,7 @@ class SQLiteDatabase(BaseDatabase):
|
|
|
159
159
|
or_(
|
|
160
160
|
ConversationV2.title.ilike(f"%{search_query}%"),
|
|
161
161
|
ConversationV2.content.ilike(f"%{search_query}%"),
|
|
162
|
+
ConversationV2.user_id.ilike(f"%{search_query}%"),
|
|
162
163
|
)
|
|
163
164
|
)
|
|
164
165
|
if "message_types" in kwargs and len(kwargs["message_types"]) > 0:
|
|
@@ -285,11 +285,11 @@ async def run_agent(
|
|
|
285
285
|
|
|
286
286
|
except Exception as e:
|
|
287
287
|
logger.error(traceback.format_exc())
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
288
|
+
err_msg = f"\n\nAstrBot 请求失败。\n错误类型: {type(e).__name__}\n错误信息: {str(e)}\n\n请在控制台查看和分享错误详情。\n"
|
|
289
|
+
if agent_runner.streaming:
|
|
290
|
+
yield MessageChain().message(err_msg)
|
|
291
|
+
else:
|
|
292
|
+
astr_event.set_result(MessageEventResult().message(err_msg))
|
|
293
293
|
return
|
|
294
294
|
asyncio.create_task(
|
|
295
295
|
Metric.upload(
|
|
@@ -7,7 +7,13 @@ from astrbot.core.astrbot_config_mgr import AstrBotConfigManager
|
|
|
7
7
|
from astrbot.core.db import BaseDatabase
|
|
8
8
|
|
|
9
9
|
from .entities import ProviderType
|
|
10
|
-
from .provider import
|
|
10
|
+
from .provider import (
|
|
11
|
+
Provider,
|
|
12
|
+
STTProvider,
|
|
13
|
+
TTSProvider,
|
|
14
|
+
EmbeddingProvider,
|
|
15
|
+
RerankProvider,
|
|
16
|
+
)
|
|
11
17
|
from .register import llm_tools, provider_cls_map
|
|
12
18
|
from ..persona_mgr import PersonaManager
|
|
13
19
|
|
|
@@ -38,7 +44,12 @@ class ProviderManager:
|
|
|
38
44
|
"""加载的 Text To Speech Provider 的实例"""
|
|
39
45
|
self.embedding_provider_insts: List[EmbeddingProvider] = []
|
|
40
46
|
"""加载的 Embedding Provider 的实例"""
|
|
41
|
-
self.
|
|
47
|
+
self.rerank_provider_insts: List[RerankProvider] = []
|
|
48
|
+
"""加载的 Rerank Provider 的实例"""
|
|
49
|
+
self.inst_map: dict[
|
|
50
|
+
str,
|
|
51
|
+
Provider | STTProvider | TTSProvider | EmbeddingProvider | RerankProvider,
|
|
52
|
+
] = {}
|
|
42
53
|
"""Provider 实例映射. key: provider_id, value: Provider 实例"""
|
|
43
54
|
self.llm_tools = llm_tools
|
|
44
55
|
|
|
@@ -378,14 +389,16 @@ class ProviderManager:
|
|
|
378
389
|
if not self.curr_provider_inst:
|
|
379
390
|
self.curr_provider_inst = inst
|
|
380
391
|
|
|
381
|
-
elif provider_metadata.provider_type
|
|
382
|
-
ProviderType.EMBEDDING,
|
|
383
|
-
ProviderType.RERANK,
|
|
384
|
-
]:
|
|
392
|
+
elif provider_metadata.provider_type == ProviderType.EMBEDDING:
|
|
385
393
|
inst = cls_type(provider_config, self.provider_settings)
|
|
386
394
|
if getattr(inst, "initialize", None):
|
|
387
395
|
await inst.initialize()
|
|
388
396
|
self.embedding_provider_insts.append(inst)
|
|
397
|
+
elif provider_metadata.provider_type == ProviderType.RERANK:
|
|
398
|
+
inst = cls_type(provider_config, self.provider_settings)
|
|
399
|
+
if getattr(inst, "initialize", None):
|
|
400
|
+
await inst.initialize()
|
|
401
|
+
self.rerank_provider_insts.append(inst)
|
|
389
402
|
|
|
390
403
|
self.inst_map[provider_config["id"]] = inst
|
|
391
404
|
except Exception as e:
|
|
@@ -6,6 +6,7 @@ from astrbot.core.provider.provider import (
|
|
|
6
6
|
TTSProvider,
|
|
7
7
|
STTProvider,
|
|
8
8
|
EmbeddingProvider,
|
|
9
|
+
RerankProvider,
|
|
9
10
|
)
|
|
10
11
|
from astrbot.core.provider.entities import ProviderType
|
|
11
12
|
from astrbot.core.db import BaseDatabase
|
|
@@ -103,11 +104,13 @@ class Context:
|
|
|
103
104
|
"""
|
|
104
105
|
self.provider_manager.provider_insts.append(provider)
|
|
105
106
|
|
|
106
|
-
def get_provider_by_id(
|
|
107
|
-
|
|
107
|
+
def get_provider_by_id(
|
|
108
|
+
self, provider_id: str
|
|
109
|
+
) -> (
|
|
110
|
+
Provider | TTSProvider | STTProvider | EmbeddingProvider | RerankProvider | None
|
|
111
|
+
):
|
|
112
|
+
"""通过 ID 获取对应的 LLM Provider。"""
|
|
108
113
|
prov = self.provider_manager.inst_map.get(provider_id)
|
|
109
|
-
if prov and not isinstance(prov, Provider):
|
|
110
|
-
raise ValueError("返回的 Provider 不是 Provider 类型")
|
|
111
114
|
return prov
|
|
112
115
|
|
|
113
116
|
def get_all_providers(self) -> List[Provider]:
|
|
@@ -227,9 +227,11 @@ async def download_dashboard(
|
|
|
227
227
|
path = os.path.join(get_astrbot_data_path(), "dashboard.zip")
|
|
228
228
|
|
|
229
229
|
if latest or len(str(version)) != 40:
|
|
230
|
-
logger.info(f"准备下载 {version} 发行版本的 AstrBot WebUI 文件")
|
|
231
230
|
ver_name = "latest" if latest else version
|
|
232
231
|
dashboard_release_url = f"https://astrbot-registry.soulter.top/download/astrbot-dashboard/{ver_name}/dist.zip"
|
|
232
|
+
logger.info(
|
|
233
|
+
f"准备下载指定发行版本的 AstrBot WebUI 文件: {dashboard_release_url}"
|
|
234
|
+
)
|
|
233
235
|
try:
|
|
234
236
|
await download_file(dashboard_release_url, path, show_progress=True)
|
|
235
237
|
except BaseException as _:
|
|
@@ -241,24 +243,10 @@ async def download_dashboard(
|
|
|
241
243
|
dashboard_release_url = f"{proxy}/{dashboard_release_url}"
|
|
242
244
|
await download_file(dashboard_release_url, path, show_progress=True)
|
|
243
245
|
else:
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
url = (
|
|
247
|
-
"https://api.github.com/repos/AstrBotDevs/astrbot-release-harbour/releases"
|
|
248
|
-
)
|
|
246
|
+
url = f"https://github.com/AstrBotDevs/astrbot-release-harbour/releases/download/release-{version}/dist.zip"
|
|
247
|
+
logger.info(f"准备下载指定版本的 AstrBot WebUI: {url}")
|
|
249
248
|
if proxy:
|
|
250
249
|
url = f"{proxy}/{url}"
|
|
251
|
-
|
|
252
|
-
async with session.get(url) as resp:
|
|
253
|
-
if resp.status == 200:
|
|
254
|
-
releases = await resp.json()
|
|
255
|
-
for release in releases:
|
|
256
|
-
if version in release["tag_name"]:
|
|
257
|
-
download_url = release["assets"][0]["browser_download_url"]
|
|
258
|
-
await download_file(download_url, path, show_progress=True)
|
|
259
|
-
else:
|
|
260
|
-
logger.warning(f"未找到指定的版本的 Dashboard 构建文件: {version}")
|
|
261
|
-
return
|
|
262
|
-
|
|
250
|
+
await download_file(url, path, show_progress=True)
|
|
263
251
|
with zipfile.ZipFile(path, "r") as z:
|
|
264
252
|
z.extractall(extract_path)
|
|
@@ -51,24 +51,6 @@ def validate_config(
|
|
|
51
51
|
def validate(data: dict, metadata: dict = schema, path=""):
|
|
52
52
|
for key, value in data.items():
|
|
53
53
|
if key not in metadata:
|
|
54
|
-
# 无 schema 的配置项,执行类型猜测
|
|
55
|
-
if isinstance(value, str):
|
|
56
|
-
try:
|
|
57
|
-
data[key] = int(value)
|
|
58
|
-
continue
|
|
59
|
-
except ValueError:
|
|
60
|
-
pass
|
|
61
|
-
|
|
62
|
-
try:
|
|
63
|
-
data[key] = float(value)
|
|
64
|
-
continue
|
|
65
|
-
except ValueError:
|
|
66
|
-
pass
|
|
67
|
-
|
|
68
|
-
if value.lower() == "true":
|
|
69
|
-
data[key] = True
|
|
70
|
-
elif value.lower() == "false":
|
|
71
|
-
data[key] = False
|
|
72
54
|
continue
|
|
73
55
|
meta = metadata[key]
|
|
74
56
|
if "type" not in meta:
|
|
@@ -127,12 +109,12 @@ def validate_config(
|
|
|
127
109
|
)
|
|
128
110
|
|
|
129
111
|
if is_core:
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
112
|
+
meta_all = {
|
|
113
|
+
**schema["platform_group"]["metadata"],
|
|
114
|
+
**schema["provider_group"]["metadata"],
|
|
115
|
+
**schema["misc_config_group"]["metadata"],
|
|
116
|
+
}
|
|
117
|
+
validate(data, meta_all)
|
|
136
118
|
else:
|
|
137
119
|
validate(data, schema)
|
|
138
120
|
|
|
@@ -142,6 +124,7 @@ def validate_config(
|
|
|
142
124
|
def save_config(post_config: dict, config: AstrBotConfig, is_core: bool = False):
|
|
143
125
|
"""验证并保存配置"""
|
|
144
126
|
errors = None
|
|
127
|
+
logger.info(f"Saving config, is_core={is_core}")
|
|
145
128
|
try:
|
|
146
129
|
if is_core:
|
|
147
130
|
errors, post_config = validate_config(
|
|
@@ -169,15 +169,65 @@ class ConversationRoute(Route):
|
|
|
169
169
|
"""删除对话"""
|
|
170
170
|
try:
|
|
171
171
|
data = await request.get_json()
|
|
172
|
-
user_id = data.get("user_id")
|
|
173
|
-
cid = data.get("cid")
|
|
174
172
|
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
173
|
+
# 检查是否是批量删除
|
|
174
|
+
if "conversations" in data:
|
|
175
|
+
# 批量删除
|
|
176
|
+
conversations = data.get("conversations", [])
|
|
177
|
+
if not conversations:
|
|
178
|
+
return (
|
|
179
|
+
Response().error("批量删除时conversations参数不能为空").__dict__
|
|
180
|
+
)
|
|
181
|
+
|
|
182
|
+
deleted_count = 0
|
|
183
|
+
failed_items = []
|
|
184
|
+
|
|
185
|
+
for conv in conversations:
|
|
186
|
+
user_id = conv.get("user_id")
|
|
187
|
+
cid = conv.get("cid")
|
|
188
|
+
|
|
189
|
+
if not user_id or not cid:
|
|
190
|
+
failed_items.append(
|
|
191
|
+
f"user_id:{user_id}, cid:{cid} - 缺少必要参数"
|
|
192
|
+
)
|
|
193
|
+
continue
|
|
194
|
+
|
|
195
|
+
try:
|
|
196
|
+
await self.core_lifecycle.conversation_manager.delete_conversation(
|
|
197
|
+
unified_msg_origin=user_id, conversation_id=cid
|
|
198
|
+
)
|
|
199
|
+
deleted_count += 1
|
|
200
|
+
except Exception as e:
|
|
201
|
+
failed_items.append(f"user_id:{user_id}, cid:{cid} - {str(e)}")
|
|
202
|
+
|
|
203
|
+
message = f"成功删除 {deleted_count} 个对话"
|
|
204
|
+
if failed_items:
|
|
205
|
+
message += f",失败 {len(failed_items)} 个"
|
|
206
|
+
|
|
207
|
+
return (
|
|
208
|
+
Response()
|
|
209
|
+
.ok(
|
|
210
|
+
{
|
|
211
|
+
"message": message,
|
|
212
|
+
"deleted_count": deleted_count,
|
|
213
|
+
"failed_count": len(failed_items),
|
|
214
|
+
"failed_items": failed_items,
|
|
215
|
+
}
|
|
216
|
+
)
|
|
217
|
+
.__dict__
|
|
218
|
+
)
|
|
219
|
+
else:
|
|
220
|
+
# 单个删除
|
|
221
|
+
user_id = data.get("user_id")
|
|
222
|
+
cid = data.get("cid")
|
|
223
|
+
|
|
224
|
+
if not user_id or not cid:
|
|
225
|
+
return Response().error("缺少必要参数: user_id 和 cid").__dict__
|
|
226
|
+
|
|
227
|
+
await self.core_lifecycle.conversation_manager.delete_conversation(
|
|
228
|
+
unified_msg_origin=user_id, conversation_id=cid
|
|
229
|
+
)
|
|
230
|
+
return Response().ok({"message": "对话删除成功"}).__dict__
|
|
181
231
|
|
|
182
232
|
except Exception as e:
|
|
183
233
|
logger.error(f"删除对话失败: {str(e)}\n{traceback.format_exc()}")
|