Skip to content

Conversation

@zerob13
Copy link
Collaborator

@zerob13 zerob13 commented Nov 10, 2025

DeepChat 0.4.5 Release Note

English

  • Added request trace/debug feature for LLM messages in developer mode: You can now inspect actual request parameters sent to providers via a Trace button (bug icon) in the message toolbar (DEV only).
  • Request preview reconstructs endpoint, headers, and body, with sensitive information (API keys, tokens, passwords) redacted for safety.
  • UI/UX: TraceDialog supports JSON copy, multi-state (loading/error/not-implemented/success), and localizes trace tooltip and dialog labels.
  • Provider support: All OpenAI-compatible providers (and all 23+ derived providers) support this debug trace; Anthropic, Gemini, AWS Bedrock, Ollama, Github Copilot not implemented yet.
  • Refactored and standardized image block data structure.
  • Updated release artifact URL handling logic in workflow.
  • Added toggle event for trace debug config and related backend logic.
  • General bugfixes: Model config refresh toggle, tool call handling, etc.
  • Documentation: Added developer overview for Trace Request Parameters feature and usage.

中文

  • 新增开发者模式下的 请求参数调试功能:在消息工具栏点击 bug 图标可查看发送给 LLM 服务商的实际请求参数(开发模式独享)。
  • 请求参数预览 能重构接口地址、请求头和主体参数,并对敏感信息(如API密钥、令牌、密码等)做安全脱敏处理。
  • 界面优化:TraceDialog 支持 JSON 一键复制、多种状态展示(加载中/错误/未实现/成功),Trace 相关提示支持中英双语本地化。
  • 服务商支持:所有基于 OpenAI 兼容接口的模型厂商(及其 23+ 衍生商)均已支持此调试;Anthropic、Gemini、AWS Bedrock、Ollama、Github Copilot 尚未实现。
  • 重新规范化了图片块数据结构。
  • 工作流逻辑完善,支持发布物 URL 自动更新。
  • 新增 Trace 调试配置切换事件及后端逻辑。
  • 常规修复:模型配置刷新选项、工具调用处理等。
  • 文档补充:详细介绍 Trace 请求参数功能及用法。[1]

zerob13 and others added 7 commits November 4, 2025 16:34
fix: custom provider add refresh-model
Signed-off-by: Rui Chen <rui@chenrui.dev>
* refactor: standardize image block data structure with backward compatibility

Normalize image_data structure in ThreadPresenter to ensure consistent mimeType handling. Update MessageBlockImage component to support legacy data formats (content as object/string/data URI) while maintaining compatibility with new image_data field.

* fix: properly normalize image data URIs before persistence

Extract base64 content and mime type from data URIs (data:image/jpeg;base64,...) to prevent double-encoding in renderer. This fixes image display errors where data:image/png;base64,data:image/jpeg;base64,... was being constructed.

- Parse data URIs to extract real mime type and base64 content
- Force URL schemes (http://, https://, imgcache://) to deepchat/image-url
- Preserve provided mime types when available
- Fallback to image/png only for raw base64 without metadata

* fix: normalize legacy data URIs in renderer to prevent double-encoding

Handle historical image_data records that may still contain full data:image/...;base64,... URIs. Extract base64 content and mime type before template binding to prevent constructing invalid data:image/png;base64,data:image/png;base64,... URIs.

- Parse data URIs in both new image_data and legacy content formats
- Always provide mimeType fallback for historical records
- Ensure normalized data format before template consumption
* feat: add trace support wip

* feat: add trace dialog with monaco

* feat: add i18n for trace dialog

* feat: add config for trace params

* fix: prevent stale previews when messageId changes
@coderabbitai
Copy link
Contributor

coderabbitai bot commented Nov 10, 2025

Important

Review skipped

Auto reviews are disabled on base/target branches other than the default branch.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

✨ Finishing touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch dev

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@zerob13 zerob13 merged commit 125c15e into main Nov 10, 2025
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants