LIghtJUNction
fb56ac9f47
依赖注入示例
2025-11-03 23:28:13 +08:00
LIghtJUNction
5719dbd8b2
Update abc.py
2025-11-03 20:46:32 +08:00
LIghtJUNction
5217450c8a
init
2025-11-03 20:28:55 +08:00
LIghtJUNction
15aafa2043
Update astrbot/core/config/default.py
...
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com >
2025-11-03 14:26:00 +08:00
Copilot
36a3b4d318
chore: 运行 ruff format 修复代码格式 ( #3291 )
...
* Initial plan
* chore: 运行 ruff format 修复代码格式
Co-authored-by: LIghtJUNction <106986785+LIghtJUNction@users.noreply.github.com >
---------
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com >
Co-authored-by: LIghtJUNction <106986785+LIghtJUNction@users.noreply.github.com >
2025-11-03 14:25:01 +08:00
LIghtJUNction
7518c4a057
Update astrbot/core/utils/astrbot_path.py
...
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com >
2025-11-03 12:36:47 +08:00
LIghtJUNction
8e3bd92c09
Update astrbot/core/utils/astrbot_path.py
...
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com >
2025-11-03 03:14:37 +08:00
Copilot
9e4fec8488
[WIP] Update path class and deprecate old functions ( #3287 )
...
* Initial plan
* feat: 为 AstrbotPaths 添加全面测试,覆盖率达到 100%
Co-authored-by: LIghtJUNction <106986785+LIghtJUNction@users.noreply.github.com >
---------
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com >
Co-authored-by: LIghtJUNction <106986785+LIghtJUNction@users.noreply.github.com >
2025-11-03 03:06:53 +08:00
Copilot
983264dc1a
fix: 移除未使用的临时目录变量 ( #3286 )
...
* Initial plan
* fix: 移除未使用的临时目录变量 (ruff check --fix)
Co-authored-by: LIghtJUNction <106986785+LIghtJUNction@users.noreply.github.com >
---------
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com >
Co-authored-by: LIghtJUNction <106986785+LIghtJUNction@users.noreply.github.com >
2025-11-03 02:51:12 +08:00
Copilot
b3f23b23da
chore: 使用 ruff format 格式化代码 ( #3283 )
...
* Initial plan
* chore: 使用 ruff format 格式化代码
Co-authored-by: LIghtJUNction <106986785+LIghtJUNction@users.noreply.github.com >
---------
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com >
Co-authored-by: LIghtJUNction <106986785+LIghtJUNction@users.noreply.github.com >
2025-11-03 02:31:47 +08:00
LIghtJUNction
212d8cc101
版本号统一,常量移动至base包 ( #3281 )
...
Co-authored-by: 赵天乐(tyler zhao) <189870321+tyler-ztl@users.noreply.github.com >
2025-11-03 00:02:21 +08:00
LIghtJUNction
36de3c541a
Update astrbot/base/paths.py
...
Co-authored-by: sourcery-ai[bot] <58596630+sourcery-ai[bot]@users.noreply.github.com>
2025-11-02 22:57:05 +08:00
LIghtJUNction
1151677f13
fix/ 抽象基类装饰器顺序写反了
...
Co-Authored-By: 赵天乐(tyler zhao) <189870321+tyler-ztl@users.noreply.github.com >
2025-11-02 22:54:43 +08:00
LIghtJUNction
2ccb85d802
统一路径类,旧函数已弃用
...
.env文件保存统一的路径
静态文件一起打包而不是从上上上级目录找...
Co-Authored-By: 赵天乐(tyler zhao) <189870321+tyler-ztl@users.noreply.github.com >
2025-11-02 22:47:22 +08:00
Soulter
50144ddcae
refactor: revise LLM message schema and fix the reload logic when using dataclass-based LLM Tool registration ( #3234 )
...
* refactor: llm message schema
* feat: implement MCPTool and local LLM tools with enhanced context handling
* refactor: reorganize imports and enhance docstrings for clarity
* refactor: enhance ContentPart validation and add message pair handling in ConversationManager
* chore: ruff format
* refactor: remove debug print statement from payloads in ProviderOpenAIOfficial
* Update astrbot/core/agent/tool.py
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com >
* Update astrbot/core/agent/message.py
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com >
* Update astrbot/core/agent/message.py
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com >
* Update astrbot/core/agent/tool.py
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com >
* Update astrbot/core/pipeline/process_stage/method/llm_request.py
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com >
* Update astrbot/core/agent/message.py
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com >
* refactor: enhance documentation and import mcp in tool.py; update call method return type
* fix: 修复以数据类的方式注册 tool 时的插件重载机制问题
* refactor: change role attributes to use Literal types for message segments
* fix: add support for 'decorator_handler' method in call_local_llm_tool
* fix: handle None prompt in text_chat method and ensure context is properly formatted
---------
Co-authored-by: LIghtJUNction <lightjunction.me@gmail.com >
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com >
2025-11-02 18:12:20 +08:00
Copilot
94bf3b8195
Fix incorrect type annotations and errors ( #3250 )
...
* Initial plan
* Fix type annotation errors in cmd_conf, cmd_init, and version_comparator
Co-authored-by: LIghtJUNction <106986785+LIghtJUNction@users.noreply.github.com >
* Changes before error encountered
Co-authored-by: LIghtJUNction <106986785+LIghtJUNction@users.noreply.github.com >
* Fix more type annotation errors: change `= None` to `| None = None`
Co-authored-by: LIghtJUNction <106986785+LIghtJUNction@users.noreply.github.com >
* Fix final batch of type annotation errors
Co-authored-by: LIghtJUNction <106986785+LIghtJUNction@users.noreply.github.com >
---------
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com >
Co-authored-by: LIghtJUNction <106986785+LIghtJUNction@users.noreply.github.com >
Co-authored-by: LIghtJUNction <lightjunction.me@gmail.com >
2025-11-02 17:02:56 +08:00
Copilot
e190bbeeed
Optimize string concatenation in loops: replace += with list.join() ( #3246 )
...
* Initial plan
* Fix string concatenation performance issues in loops
Co-authored-by: LIghtJUNction <106986785+LIghtJUNction@users.noreply.github.com >
* Address code review feedback: Fix plugin list logic and add comment
Co-authored-by: LIghtJUNction <106986785+LIghtJUNction@users.noreply.github.com >
* Improve comment clarity for at_parts accumulation
Co-authored-by: LIghtJUNction <106986785+LIghtJUNction@users.noreply.github.com >
---------
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com >
Co-authored-by: LIghtJUNction <106986785+LIghtJUNction@users.noreply.github.com >
2025-11-02 13:00:59 +08:00
Copilot
92abc43c9d
Fix mutable default arguments in constructors and methods ( #3247 )
...
* Initial plan
* Fix mutable default arguments in constructors and methods
Co-authored-by: LIghtJUNction <106986785+LIghtJUNction@users.noreply.github.com >
---------
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com >
Co-authored-by: LIghtJUNction <106986785+LIghtJUNction@users.noreply.github.com >
2025-11-02 12:57:37 +08:00
Copilot
c8e34ff26f
[WIP] Translate mixed English comments to Chinese ( #3256 )
...
* Initial plan
* Changes before error encountered
Co-authored-by: LIghtJUNction <106986785+LIghtJUNction@users.noreply.github.com >
---------
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com >
Co-authored-by: LIghtJUNction <106986785+LIghtJUNction@users.noreply.github.com >
2025-11-02 12:52:46 +08:00
Soulter
630df3e76e
refactor: reorganize ComponentType definitions and remove unused classes
2025-11-01 23:18:40 +08:00
Raven95676
bdbf382201
chore: remove astrbot.lock
2025-11-01 17:43:54 +08:00
Raven95676
00eefc82db
chore(.gitignore): update ignore rule
2025-11-01 17:41:02 +08:00
LIghtJUNction
dc97080837
Update .gitignore
2025-11-01 17:37:57 +08:00
LIghtJUNction
0b7fc29ac4
style: add ruff lint module of isort and pyupgrade, and some ruff check fix ( #3214 )
...
Co-authored-by: Dt8333 <25431943+Dt8333@users.noreply.github.com >
Co-authored-by: Soulter <905617992@qq.com >
2025-11-01 13:26:19 +08:00
Soulter
ff998fdd8d
chore: bump version to 4.5.1
v4.5.1
2025-10-31 23:55:40 +08:00
LIghtJUNction
d7461ed54c
fix(helper.py): 修复了迁移逻辑,现在不再误判 ( #3215 )
...
* fix(helper.py): 修复了迁移逻辑,现在不再误判
* fix(helper.py): 没有data_v3 dir
2025-10-31 23:37:37 +08:00
Soulter
3ce577acf9
docs: enhance bug report template with clarity on details
...
Updated bug report template to emphasize the need for detailed logs and information.
2025-10-31 23:18:15 +08:00
Chris
50b1dccff3
feat: support xAI Grok Live Search config ( #3203 )
...
* Add xai_native_search configuration option
* Implement xAI compatibility and search injection
Add support for xAI integration with search parameters injection.
* Refactor xAI handling in openai_source.py
Removed the _is_xai method and updated xAI search injection logic.
* Fix formatting of condition in default.py
* Fix formatting in openai_source.py
2025-10-31 21:48:45 +08:00
Dt8333
c33e7e30d4
chore(requirements): Sync dependencies from pyproject to requirements.txt ( #3208 )
...
* chore(requirements): 将pyproject中的dependency同步到requirements.txt
* chore(requirements): 补全遗漏dependency
2025-10-31 15:27:16 +08:00
RC-CHN
bc7f01ba36
feat: add Xinference STT provider ( #3197 )
...
* feat: add Xinference STT provider
* chore:update comment in xinference_stt_provider
* style: ruff format xinference_stt_provider
* chore: remove unused import of base64 in xinference_stt_provider
* fix: enhance model initialization check in get_text method
---------
Co-authored-by: Soulter <905617992@qq.com >
2025-10-31 01:49:35 +08:00
再吃颗电池吧
2ce653caad
perf: modify the at logic in the DingTalk adapter ( #3186 )
...
* feat 初次提交
* fix: Modify the At logic in the DingTalk adapter.
* del uv.lock
* 添加at_users为空判断
* 优化钉钉at的处理逻辑,不用重复判断机器人是否is_in_at_list
* fix: refine handling of mentioned users in group messages
---------
Co-authored-by: linyiming <linyiming@example.com >
Co-authored-by: Soulter <905617992@qq.com >
2025-10-30 14:15:01 +08:00
Soulter
0d850d7b22
fix: refine docstring for add_llm_tools method in Context class
2025-10-29 20:16:27 +08:00
Soulter
a2be155b8e
feat: add method to register LLM tools in Context class
2025-10-29 20:13:15 +08:00
Soulter
68aa107689
docs: update readme
2025-10-29 13:58:58 +08:00
Soulter
23096ed3a5
perf: update extension card page style, add config and view-docs button
2025-10-29 00:38:04 +08:00
RC-CHN
90a65c35c1
feat: add Xinference rerank provider ( #3162 )
...
* feat:add Xinference rerank provider
* feat:add default rerank_api_key option for Xinference provider
* style: format code
* fix: refactor XinferenceRerankProvider initialization for better error handling
* fix: update XinferenceRerankProvider to use async client methods for initialization and reranking
* feat: add launch_model_if_not_running option to XinferenceRerankProvider for better control over model initialization
* chore: remove unused asyncio import from xinference_rerank_source.py
2025-10-28 18:23:55 +08:00
a490077
3d88827a95
fix: qq_official_webhook is_sandbox field error ( #3167 )
...
* QQ官方机器人增加沙箱模式选项,让本地部署能跳过IP白名单验证
* chore: ruff format
* 修复沙盒配置为字符串判断
* 由于配置类型为字符串,修复为字符串判断
* chore: ruff format
* fix: update is_sandbox configuration to use boolean type
---------
Co-authored-by: 郭鹏 <gp@pp052.top >
Co-authored-by: Soulter <905617992@qq.com >
Co-authored-by: Dt8333 <lb0016@foxmail.com >
2025-10-28 10:15:46 +08:00
Futureppo
40a0a8df5a
perf: 优化 /model 切换模型成功的提示 ( #3161 )
2025-10-28 09:05:42 +08:00
dependabot[bot]
20f7129c0b
chore(deps): bump actions/upload-artifact in the github-actions group ( #3178 )
...
Bumps the github-actions group with 1 update: [actions/upload-artifact](https://github.com/actions/upload-artifact ).
Updates `actions/upload-artifact` from 4 to 5
- [Release notes](https://github.com/actions/upload-artifact/releases )
- [Commits](https://github.com/actions/upload-artifact/compare/v4...v5 )
---
updated-dependencies:
- dependency-name: actions/upload-artifact
dependency-version: '5'
dependency-type: direct:production
update-type: version-update:semver-major
dependency-group: github-actions
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-10-28 08:53:28 +08:00
Soulter
0e962e95dd
docs: update plugin information template in YAML
2025-10-27 14:26:59 +08:00
Soulter
07ba9c772c
chore: bump version to 4.5.0
v4.5.0
2025-10-26 21:40:11 +08:00
Soulter
0622d88b22
fix: revert 3106 ( #3153 )
...
* fix: revert 3106
Co-authored-by: Dt8333 <25431943+Dt8333@users.noreply.github.com >
Co-authored-by: LIghtJUNction <lightjunction.me@gmail.com >
Co-authored-by: exynos <110159911+xiaoxi68@users.noreply.github.com >
* Update astrbot/dashboard/routes/update.py
Co-authored-by: sourcery-ai[bot] <58596630+sourcery-ai[bot]@users.noreply.github.com>
* fix: remove unnecessary version file handling in download_dashboard function
* fix: revert
---------
Co-authored-by: Dt8333 <25431943+Dt8333@users.noreply.github.com >
Co-authored-by: LIghtJUNction <lightjunction.me@gmail.com >
Co-authored-by: exynos <110159911+xiaoxi68@users.noreply.github.com >
Co-authored-by: sourcery-ai[bot] <58596630+sourcery-ai[bot]@users.noreply.github.com>
2025-10-26 21:26:48 +08:00
Soulter
594f0fed55
style: adjust padding for card text in ExtensionPage for improved layout
2025-10-26 21:19:07 +08:00
Soulter
04b0d9b88d
Merge pull request #3155 from AstrBotDevs/feat/plugin-display-name-and-logo
...
feat: add support for plugin display name and logo, and some extension card style fix
2025-10-26 20:54:24 +08:00
Soulter
1f2af8ef94
Update dashboard/src/components/shared/ExtensionCard.vue
...
Co-authored-by: sourcery-ai[bot] <58596630+sourcery-ai[bot]@users.noreply.github.com>
2025-10-26 20:52:37 +08:00
Soulter
598ea2d857
refactor: update ExtensionCard styling and improve layout for better responsiveness
2025-10-26 20:49:27 +08:00
Soulter
6dd9bbb516
feat: enhance plugin metadata with display name and logo support
2025-10-26 20:30:54 +08:00
Soulter
3cd0b47dc6
feat: add GitHub link button to ExtensionCard for extensions with a repository
2025-10-26 19:41:00 +08:00
Soulter
65c71b5f20
refactor: remove Google search engine integration from main module and dependencies ( #3154 )
2025-10-26 18:54:01 +08:00
exynos
1152b11202
feat(thinking_filter): 适配第三方 Gemini 思考片段过滤 ( #3139 )
...
* feat(thinking_filter): 适配第三方 Gemini 思考片段过滤
* feat(thinking_filter): Gemini 思考过滤、序列化回退与空白清理重构
* 使用 ruff 格式化并修复导入空行
2025-10-26 18:43:58 +08:00