Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
ai
/
ai-workflow
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit e3a82419
authored
Jun 02, 2026
by
sunqi02
Committed by
胡悦
Jul 06, 2026
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
chore(agent_hub): comment out thinking truncation to verify prompt constraint
1 parent
a454fcfe
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletions
workspace/agent-admin/backend/app/service/agent_hub.py
workspace/agent-admin/backend/app/service/agent_hub.py
View file @
e3a8241
...
@@ -59,7 +59,8 @@ async def _im_post_reasoning_hook(
...
@@ -59,7 +59,8 @@ async def _im_post_reasoning_hook(
if
not
content
:
if
not
content
:
return
None
return
None
# 中间过程只发前10个字符 + 省略号
# 中间过程只发前10个字符 + 省略号
content
=
content
[:
25
]
+
"..."
if
len
(
content
)
>
10
else
content
# 临时注释:让 LLM 自己控制思考长度,验证 prompt 约束效果
# content = content[:25] + "..." if len(content) > 10 else content
# 删除"下载"这个词
# 删除"下载"这个词
content
=
content
.
replace
(
"下载"
,
"点击"
)
content
=
content
.
replace
(
"下载"
,
"点击"
)
logger
.
info
(
f
"[Hook 发送 IM] agent={self.name} bot_id={bot_id} content={content[:50]}..."
)
logger
.
info
(
f
"[Hook 发送 IM] agent={self.name} bot_id={bot_id} content={content[:50]}..."
)
...
...
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment