Skip to content

add conversation expire config & user query text to dingtalk card#2147

Open
0xzmz wants to merge 2 commits intolangbot-app:masterfrom
0xzmz:master
Open

add conversation expire config & user query text to dingtalk card#2147
0xzmz wants to merge 2 commits intolangbot-app:masterfrom
0xzmz:master

Conversation

@0xzmz
Copy link
Copy Markdown
Contributor

@0xzmz 0xzmz commented Apr 23, 2026

概述 / Overview

请在此部分填写你实现/解决/优化的内容:
Summary of what you implemented/solved/optimized:

  1. 增加了会话超时参数限制功能,方便自定义同一会话最大时长,实现超时自动切换
  2. 增加了将请求用户消息传递给钉钉卡片,方便后续进行卡片转发时携带上用户发的消息

更改前后对比截图 / Screenshots

请在此部分粘贴更改前后对比截图(可以是界面截图、控制台输出、对话截图等):
Please paste the screenshots of changes before and after here (can be interface screenshots, console output, conversation screenshots, etc.):

修改前 / Before:

  1. 修改后 / After:
    设置超时时长为60s,当会话触发时间超过会话创建时间60s后,自动切换到新会话
超时时长1分钟
  1. 修改后 / After:
    卡片消息里面能查看到用户发的请求文本
增加query

检查清单 / Checklist

PR 作者完成 / For PR author

请在方括号间写x以打勾 / Please tick the box with x

  • 阅读仓库贡献指引了吗? / Have you read the contribution guide?
  • 与项目所有者沟通过了吗? / Have you communicated with the project maintainer?
  • 我确定已自行测试所作的更改,确保功能符合预期。 / I have tested the changes and ensured they work as expected.

项目维护者完成 / For project maintainer

  • 相关 issues 链接了吗? / Have you linked the related issues?
  • 配置项写好了吗?迁移写好了吗?生效了吗? / Have you written the configuration items? Have you written the migration? Has it taken effect?
  • 依赖加到 pyproject.toml 和 core/bootutils/deps.py 了吗 / Have you added the dependencies to pyproject.toml and core/bootutils/deps.py?
  • 文档编写了吗? / Have you written the documentation?

@dosubot dosubot Bot added size:S This PR changes 10-29 lines, ignoring generated files. eh: Feature enhance: 新功能添加 / add new features m: Session 会话和消息模块 / Sessions management pd: Need testing pending: 待测试的PR / PR waiting to be tested labels Apr 23, 2026
@0xzmz 0xzmz changed the title add conversation expire config add conversation expire config & user query text to dingtalk card Apr 23, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

eh: Feature enhance: 新功能添加 / add new features m: Session 会话和消息模块 / Sessions management pd: Need testing pending: 待测试的PR / PR waiting to be tested size:S This PR changes 10-29 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant