Skip to content

Commit 779606e

Browse files
committed
Merge branch 'master' of https://github.com/PyuraMazo/AstrBot
2 parents 460e8b9 + aff92a4 commit 779606e

7 files changed

Lines changed: 42 additions & 8 deletions

File tree

.dockerignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@ ENV/
1717
.conda/
1818
dashboard/
1919
data/
20-
changelogs/
2120
tests/
2221
.ruff_cache/
2322
.astrbot

astrbot/builtin_stars/web_searcher/main.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ async def _get_from_url(self, url: str) -> str:
7070
header = HEADERS
7171
header.update({"User-Agent": random.choice(USER_AGENTS)})
7272
async with aiohttp.ClientSession(trust_env=True) as session:
73-
async with session.get(url, headers=header, timeout=6) as response:
73+
async with session.get(url, headers=header) as response:
7474
html = await response.text(encoding="utf-8")
7575
doc = Document(html)
7676
ret = doc.summary(html_partial=True)
@@ -151,7 +151,6 @@ async def _web_search_tavily(
151151
url,
152152
json=payload,
153153
headers=header,
154-
timeout=6,
155154
) as response:
156155
if response.status != 200:
157156
reason = await response.text()
@@ -183,7 +182,6 @@ async def _extract_tavily(self, cfg: AstrBotConfig, payload: dict) -> list[dict]
183182
url,
184183
json=payload,
185184
headers=header,
186-
timeout=6,
187185
) as response:
188186
if response.status != 200:
189187
reason = await response.text()
@@ -265,7 +263,7 @@ async def ensure_baidu_ai_search_mcp(self, umo: str | None = None) -> None:
265263
"transport": "sse",
266264
"url": f"http://appbuilder.baidu.com/v2/ai_search/mcp/sse?api_key={key}",
267265
"headers": {},
268-
"timeout": 30,
266+
"timeout": 600,
269267
},
270268
)
271269
self.baidu_initialized = True

astrbot/cli/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
__version__ = "4.18.0"
1+
__version__ = "4.18.1"

astrbot/core/config/default.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
from astrbot.core.utils.astrbot_path import get_astrbot_data_path
77

8-
VERSION = "4.18.0"
8+
VERSION = "4.18.1"
99
DB_PATH = os.path.join(get_astrbot_data_path(), "data_v4.db")
1010

1111
WEBHOOK_SUPPORTED_PLATFORMS = [

astrbot/core/platform/sources/qqofficial/qqofficial_message_event.py

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,26 @@
2525
from astrbot.core.utils.tencent_record_helper import wav_to_tencent_silk
2626

2727

28+
def _patch_qq_botpy_formdata() -> None:
29+
"""Patch qq-botpy for aiohttp>=3.12 compatibility.
30+
31+
qq-botpy 1.2.1 defines botpy.http._FormData._gen_form_data() and expects
32+
aiohttp.FormData to have a private flag named _is_processed, which is no
33+
longer present in newer aiohttp versions.
34+
"""
35+
36+
try:
37+
from botpy.http import _FormData # type: ignore
38+
39+
if not hasattr(_FormData, "_is_processed"):
40+
setattr(_FormData, "_is_processed", False)
41+
except Exception:
42+
logger.debug("[QQOfficial] Skip botpy FormData patch.")
43+
44+
45+
_patch_qq_botpy_formdata()
46+
47+
2848
class QQOfficialMessageEvent(AstrMessageEvent):
2949
MARKDOWN_NOT_ALLOWED_ERROR = "不允许发送原生 markdown"
3050

changelogs/v4.18.1.md

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
## What's Changed
2+
3+
### 修复
4+
- fix: 修复插件市场出现插件显示为空白的 bug;纠正已安装插件卡片的排版,统一大小 ([#5309](https://github.com/AstrBotDevs/AstrBot/issues/5309))
5+
6+
### 新增
7+
- SubAgent 支持后台执行模式配置:当 `background: true` 时,子代理将在后台运行,主对话无需等待子代理完成即可继续进行。当子代理完成后,会收到通知。适用于长时间运行或用户不需要立即结果的任务。([#5081](https://github.com/AstrBotDevs/AstrBot/issues/5081))
8+
- 配置 Schema 新增密码渲染支持:`string``text` 类型可通过 `password: true`(或 `render_type: "password"`)在 WebUI 中按密码输入方式显示。
9+
10+
## What's Changed (EN)
11+
12+
### Fixes
13+
- fix: Fixed a bug where the plugin marketplace would show blank cards for plugins; corrected the layout of installed plugin cards for consistent sizing ([#5309](https://github.com/AstrBotDevs/AstrBot/issues/5309))
14+
15+
### New Features
16+
- Added background execution mode support for sub-agents: when `background: true` is set, the sub-agent will run in the background, allowing the main conversation to continue without waiting for the sub-agent to finish. You will be notified when the sub-agent completes. This is suitable for long-running tasks or when the user does not need immediate results. ([#5081](https://github.com/AstrBotDevs/AstrBot/issues/5081))
17+
- Added password rendering support in config schema: `string` and `text` fields can be rendered as password inputs in WebUI with `password: true` (or `render_type: "password"`).

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[project]
22
name = "AstrBot"
3-
version = "4.18.0"
3+
version = "4.18.1"
44
description = "Easy-to-use multi-platform LLM chatbot and development framework"
55
readme = "README.md"
66
requires-python = ">=3.12"

0 commit comments

Comments
 (0)