Soulter
6849af2bad
refactor: LLM response handling with reasoning content ( #3632 )
...
* refactor: LLM response handling with reasoning content
- Added a `show_reasoning` parameter to `run_agent` to control the display of reasoning content.
- Updated `LLMResponse` to include a `reasoning_content` field for storing reasoning text.
- Modified `WebChatMessageEvent` to handle and send reasoning content in streaming responses.
- Implemented reasoning extraction in various provider sources (e.g., OpenAI, Gemini).
- Updated the chat interface to display reasoning content in a collapsible format.
- Removed the deprecated `thinking_filter` package and its associated logic.
- Updated localization files to include new reasoning-related strings.
* feat: add Groq chat completion provider and associated configurations
* Update astrbot/core/provider/sources/gemini_source.py
Co-authored-by: sourcery-ai[bot] <58596630+sourcery-ai[bot]@users.noreply.github.com>
---------
Co-authored-by: sourcery-ai[bot] <58596630+sourcery-ai[bot]@users.noreply.github.com>
2025-11-15 18:59:17 +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
36ffcf3cc3
fix: typing error
2025-10-21 10:56:44 +08:00
Soulter
64bcbc9fc0
refactor: 重构 SharedPreference 类并采用数据库存储替换 json 存储 ( #2482 )
2025-08-18 19:12:26 +08:00
Soulter
1bfd747cc6
perf: add system_prompt to payload_vars in dify text_chat method
2025-07-14 11:00:13 +08:00
Soulter
1063b11ef6
fix: check provider availability errors on dify
2025-07-04 10:19:58 +08:00
Soulter
5f0d601baa
feat: add support for selecting provider and models in webchat
2025-07-03 10:42:20 +08:00
Raven95676
72702beb0b
chore: clean code
2025-07-02 10:29:10 +08:00
Soulter
a55a07c5ff
remove: useless provider init params
2025-06-29 14:43:36 +08:00
Soulter
771e755a78
feat: supports dify user param
2025-06-11 22:25:10 +08:00
Soulter
30821905af
perf: remove default list param,fix dashscope_source contexts params
2025-06-06 21:36:01 +08:00
Raven95676
c111da4681
refactor: 修改框架路径获取方式,规范化路径拼接
2025-05-06 17:30:34 +08:00
Soulter
757d2a3947
🐛 fix: 更新 Dify API 类型提示,增加对 Chatflow 应用类型的说明
2025-04-11 17:23:26 +08:00
anka
ba252c5356
fix: 修正一个偶然发现的命名错误()
2025-04-06 08:12:00 +00:00
Soulter
c1cf2be533
✨ feat: 完善流式处理
2025-04-06 11:56:06 +08:00
Soulter
109650faf3
✨ feat: 支持流式输出
2025-04-06 00:56:33 +08:00
Soulter
ebcc717c19
🎈 perf: Dify 下支持更多类型的图片输入及提高代码复用性 #893
...
🐛 fix: 修复飞书下无法进行图片输入的问题
2025-03-20 11:21:45 +08:00
Soulter
e2283d1453
🐛 fix: 修复 dify 下某些修改了 LLM 响应的插件可能不生效的问题 #876
2025-03-19 01:05:28 +08:00
Soulter
c364f7c643
🎈 perf: Dify 下当只有图片输入时的默认 prompt #837
2025-03-17 23:17:07 +08:00
Soulter
3a1578b3c6
✨ feat: 支持 Dify 文件、图片、视频、音频输出。#819
2025-03-15 00:51:32 +08:00
Soulter
49bba9bf98
style: format codes
2025-03-03 13:30:55 +08:00
Soulter
bee51024b3
perf: 修复 wecom 配置项的空格问题,确保正确传递 #599
2025-02-26 00:57:54 +08:00
Soulter
03282dee0f
🐛 fix: handle message end and error events in Dify provider, improve logging and error reporting
2025-02-25 14:09:12 +08:00
Soulter
8beb7acdb1
✨ feat: 支持为 dify 和 dashscope 提供商设置默认固定变量 #552
2025-02-22 14:48:18 +08:00
Soulter
a24514876b
fix: 修复 dify 无法使用事件钩子的问题以及出现 GeneratorExit 的问题 #533 #264
2025-02-21 01:14:13 +08:00
Soulter
aff520e69a
fix: 修复 Dify 下无法主动回复的问题 #494
2025-02-15 18:31:21 +08:00
Soulter
a4bfa96502
✨ feat: 支持自定义 Dify 工作流文本输入变量名 #441
2025-02-14 15:41:02 +08:00
Soulter
9a56dcb1be
fix: cannot reset conversation in dify chat mode #469
2025-02-11 21:29:28 +08:00
Soulter
b0e9de6951
perf: 增加DIFY超时时间 #422
2025-02-08 12:58:54 +08:00
Soulter
aafc1276a9
v3.4.21
2025-02-06 18:34:43 +08:00
Soulter
cd8a73ed19
feat: 更好的人格情景管理和管理面板支持删除列表默认模版项
2025-01-14 21:08:57 +08:00
Soulter
3e2b4bc727
feat: 支持动态设置会话变量以适用 Dify 输入变量
2025-01-10 12:32:20 +08:00
Soulter
f5a37d82cc
Merge branch 'master' into feat-python-interpreter
2025-01-08 23:13:52 +08:00
Soulter
1b7e4fbbdc
perf: 退出时关闭 aiohttp client session
2025-01-08 12:43:34 +08:00
Soulter
b8fb0bee24
feat: 初步实现代码执行器 #210
2025-01-08 02:10:27 +08:00
Soulter
6cec542402
feat: 初步接入 Dify
2025-01-07 19:56:18 +08:00