Skip to content

Releases: GaiZhenbiao/ChuanhuChatGPT

20241204

04 Dec 13:50
Compare
Choose a tag to compare
English Version (Click to expand)

Features

  • Added the ability to preserve the "single-turn" and "streaming" toggle state in conversation history (@GaiZhenbiao, @Keldos-Li)
  • Introduced the admin_list parameter to restrict service restart/update to administrators only (@GaiZhenbiao)
  • Added an optional setting for renaming conversations via a model (@slideslide)
  • Improved the code for renaming, exporting, and downloading conversation history (@GaiZhenbiao, @Keldos-Li)
  • Saved conversation history no longer includes unnecessary HTML tags (@GaiZhenbiao)
  • Enabled scrolling in the conversation interface during generation (@Keldos-Li)

Bug Fixes

  • Fixed display issues for certain models in the frontend (@GaiZhenbiao)
  • Resolved and optimized issues with uploading, loading, and refreshing historical files (@GaiZhenbiao)
  • Added additional checks when loading prompt templates (@GaiZhenbiao)
  • Addressed an issue where users could access other users' conversation histories (@GaiZhenbiao)
  • Fixed mismatches in the "streaming" toggle state when creating new conversations (@GaiZhenbiao)
  • Introduced a timeout mechanism for regular expression searches in conversation history to prevent ReDoS vulnerabilities (@GaiZhenbiao)
  • Resolved conversation misalignment issues when switching outputs during chatting (@Keldos-Li)
  • Fixed other potential issues

Miscellaneous

  • Updated compatibility with Gradio to version 4.29.0
  • Changed the log level to debug for switching to an empty conversation or creating a new one (@GaiZhenbiao)

KNOWN ISSUES

  • LaTeX rendering is disabled due to an issue in Gradio

Features

  • 在对话历史记录中能够保存“单轮对话”和“流式传输”勾选状态 (@GaiZhenbiao, @Keldos-Li)
  • 增加admin_list参数,只允许管理员重启/更新服务 (@GaiZhenbiao)
  • 增加对话重命名模型设置(可选) (@xiaoran)
  • 改进了重命名、导出、下载对话历史记录的代码 (@GaiZhenbiao, @Keldos-Li)
  • 保存的对话历史记录不再包含多余的HTML标签 (@GaiZhenbiao)
  • 生成时对话界面允许滚动 (@Keldos-Li)

Bug Fixes

  • 修复了部分模型的前端显示问题 (@GaiZhenbiao)
  • 修复优化了上传、加载、刷新历史文件时可能的问题 (@GaiZhenbiao)
  • 在加载 prompt 模板时加入额外的检查 (@GaiZhenbiao)
  • 解决了用户可能访问其他用户历史记录的问题 (@GaiZhenbiao)
  • 修复创建新对话时的流式传输勾选不匹配的问题 (@GaiZhenbiao)
  • 在用正则表达式搜索历史记录时加入超时机制,以避免ReDoS问题 (@GaiZhenbiao)
  • 修复在输出时切换时聊天导致对话错乱的问题 (@Keldos-Li)
  • 修复了其他潜在的问题

Miscellaneous

  • 更新适配 Gradio 到 4.29.0
  • 切换空对话/创建新对话时的日志级别修改为debug (@GaiZhenbiao)

KNOWN ISSUES

  • 由于 Gradio 的一个问题,LaTeX 渲染被禁用
    LaTeX rendering is disabled due to an issue in Gradio

Full Changelog: 2024091...2024120

Important

如果您手动更新,请在更新完成后执行以下命令更新依赖。
Please execute the following commands after manually updating.

pip install -r requirements.txt --upgrade

20240919: Safety patches

18 Sep 04:47
Compare
Choose a tag to compare
Pre-release
English Version (Click to expand)

This update brings numerous security bug fixes, and it is recommended for all users to install.

Bug Fixes

  • Added additional checks when creating/deleting history records (@GaiZhenbiao)
  • Added extra checks when loading prompt templates (@GaiZhenbiao)
  • Triggered exceptions if the python multipart boundary is too long to address server crashes with overly long boundaries (@GaiZhenbiao)
  • Added additional checks when deleting history records (@GaiZhenbiao)
  • Introduced a timeout mechanism when searching history records using regex to prevent ReDoS issues (@GaiZhenbiao)
  • Added additional checks when refreshing history records (@GaiZhenbiao)
  • Implemented additional sanitization when uploading history records to resolve potential XSS issues. Furthermore, the method of saving history records has been modified to exclude HTML tags (@GaiZhenbiao)
  • Added checks for username validity when loading history record files (@GaiZhenbiao)
  • Resolved the LFI issue when uploading history file (@GaiZhenbiao)
  • Fixed the issue that any user can restart the service. Added admin_list parameter in the config. (@GaiZhenbiao)
  • Resolved an issue where users could access other users' histories (@GaiZhenbiao, @Keldos-Li)

Miscellaneous

  • Changed the log level of non-existent history records to debug (@GaiZhenbiao)

KNOWN ISSUES

  • LaTeX rendering is disabled due to an issue in Gradio
    LaTeX rendering is disabled due to an issue in Gradio

Full Changelog: 2024091...2024091

这枚更新带来了许多安全bug修复,推荐所有用户安装。

Bug Fixes

  • 在创建/删除历史记录时加入额外的检查 (@GaiZhenbiao)
  • 在加载prompt模板时加入额外的检查 (@GaiZhenbiao)
  • 如果python multipart的边界过长,则触发异常,以解决在超长边界时服务器死机问题 (@GaiZhenbiao)
  • 在删除历史记录时加入额外的检查 (@GaiZhenbiao)
  • 在用正则表达式搜索历史记录时加入超时机制,以避免ReDoS问题 (@GaiZhenbiao)
  • 在刷新历史记录时加入额外的检查 (@GaiZhenbiao)
  • 在上传历史记录时加入额外的清洁,以解决潜在的XSS问题。此外,也修改了保存历史记录的方式,不再包含HTML标签。 (@GaiZhenbiao)
  • 在加载历史记录文件时加入对用户名合法性的检查 (@GaiZhenbiao)
  • 解决上传历史记录时的LFI问题 (@GaiZhenbiao)
  • 解决了任何用户都可以重启服务的问题,只有管理员用户可以重启服务。(@GaiZhenbiao)
  • 解决了用户可能访问其他用户历史记录的问题 (@GaiZhenbiao, @Keldos-Li)

Miscellaneous

  • 将历史记录不存在的日志级别修改为 debug (@GaiZhenbiao)

KNOWN ISSUES

  • 由于 Gradio 的一个问题,LaTeX 渲染被禁用
    LaTeX rendering is disabled due to an issue in Gradio

Full Changelog: 2024091...2024091

20240914

14 Sep 11:14
Compare
Choose a tag to compare

Features

  • 🚀 新增 GPT o1-preview 和 o1-mini 模型支持! (@GaiZhenbiao)

Bug Fixes

  • 修复使用 Azure 时构建知识库索引失败的问题 (@ZhengQinyu)

Miscellaneous

KNOWN ISSUES

  • 由于 Gradio 的一个问题,LaTeX 渲染被禁用
    LaTeX rendering is disabled due to an issue in Gradio

Full Changelog: 2024080...2024091

20240802

02 Aug 07:29
Compare
Choose a tag to compare

KNOWN ISSUES

  • 由于 Gradio 的一个问题,LaTeX 渲染被禁用
    LaTeX rendering is disabled due to an issue in Gradio

BREAKING

  • 默认模型从 GPT3.5-turbo 更改为 GPT-4o mini

Features

Bug Fixes

  • 修复 Azure OpenAI 可能回复失败的问题 (@ZhengQinyu)

Miscellaneous

Full Changelog: 2024062...2024080

20240628

28 Jun 15:27
Compare
Choose a tag to compare

Breaking

Features

Bug Fixes

  • 修复新建 system prompt 为空的问题 (@GaiZhenbiao)
  • 修复使用GPT系列模型时可能出现invalid_request_error的问题 (@GaiZhenbiao)
  • 修复配置hide_history_when_not_logged_in为true后的界面报错 (@GaiZhenbiao)
  • 修复 PDF 解析时可能出现的一个错误 (@kavons)
  • 增加缺失的依赖 (@GaiZhenbiao)
  • 版本更新过程中的其他修复和调整 (@vc12345679, @ThorinKong)

Miscellaneous

  • 在线 RAG 改用 text-embedding-3-large 模型 (@GaiZhenbiao)
  • 调整了对话生成时相关按钮的出现时间 (@Keldos-Li)
  • 前端高度相关代码改用dvh,可能存在浏览器兼容性问题 (@Keldos-Li)
  • 禁用模型选框键入筛选
  • config_example.json 中 PaLM 更改为 Gemini (@Morpheusr)

Full Changelog: 2024041...2024062

Important

如果您手动更新,请在更新完成后执行以下命令更新依赖。
Please execute the following commands after manually updating.

pip install -r requirements.txt --upgrade

20240410

10 Apr 05:47
Compare
Choose a tag to compare

Breaking

  • 川虎助理调整为自动使用可使用的第三方插件,并支持上下文对话 (@GaiZhenbiao)
  • 适配到 gradio 4.26,重构部分代码 (@GaiZhenbiao, @Keldos-Li)

Features

Bug Fixes

Miscellaneous

  • 移除了等待输出时的特大等待气泡 (@keldos)
  • 美化使用工具时的输出 (@GaiZhenbiao)
  • Docker 指定 Python3.10 版本

Full Changelog: 2024031...2024041

Important

如果您手动更新,请在更新完成后执行以下命令更新依赖。
Please execute the following commands after manually updating.

pip install -r requirements.txt --upgrade

20240310

10 Mar 09:12
Compare
Choose a tag to compare

本次更新包含安全性更新,建议所有用户升级。
This update contains security updates. It is recommended that all users upgrade.

Features

Bug Fixes

  • 修复隐私数据问题 (@GaiZhenbiao)
  • 修复 GPT4 Vision 模型相关问题 (@GaiZhenbiao)
  • 修复切换模型后回复可能为空的问题 (@chenditc)
  • 修复 Claude 3 模型下開始新的聊天 System prompt 被清空的问题 (@GaiZhenbiao)
  • 修复multimodal warning (@GaiZhenbiao)
  • 修复重启时不刷新页面的问题 (@Keldos-Li)

Miscellaneous

Full Changelog: 2024030...2024031

Important

如果您手动更新,请在更新完成后执行以下命令更新依赖。
Please execute the following commands after manually updating.

pip install -r requirements.txt --upgrade

20240305

05 Mar 05:20
Compare
Choose a tag to compare

Features

Bug Fixes

  • 修复首次启动时无config导致的问题 (@GaiZhenbiao)
  • 自定义OPENAI_API_BASE构建索引失败的问题 (@GaiZhenbiao)

Miscellaneous

Full Changelog: 2024012...2024030

Important

如果您手动更新,请在更新完成后执行以下命令更新依赖。
Please execute the following commands after manually updating.

pip install -r requirements.txt

20240121

21 Jan 08:56
Compare
Choose a tag to compare

Features

  • Qwen支持加载本地/自定义模型 (@GaiZhenbiao)
  • 增加对OpenAiVison的图片token计算 (@tusik)
  • 搜索功能可以使用config中的代理 (@GaiZhenbiao)
  • 新增点击重启服务器功能 (@Keldos-Li)
  • 允许设置启动时是否自动打开浏览器 (@slideslide)

Bug Fixes

Miscellaneous

Full Changelog: 2023122...2024012

20231223

23 Dec 15:29
Compare
Choose a tag to compare

Features

  • 🚀 支持在输入框中粘贴或将文件拖入对话窗口以上传文件! (@Keldos-Li)
  • 新增了默认模型设置提示 (@GaiZhenbiao)
  • 点击“知识库文件”显示知识库管理组件 (@Keldos-Li)

Bug Fixes

  • 修复了DALLE3模型不通过自定义API Host请求的问题 (@slideslide)
  • 修复了Vision模型回复中断的问题 (@GaiZhenbiao)
  • 修复了修改对话名称的时候会报错的问题 (@GaiZhenbiao)

Miscellaneous

Full Changelog: 2023121...2023122