GaiZhenbiao / ChuanhuChatGPT

GUI for ChatGPT API and many LLMs. Supports agents, file-based QA, GPT finetuning and query with web search. All with a neat UI.
https://huggingface.co/spaces/JohnSmith9982/ChuanhuChatGPT
GNU General Public License v3.0
15.18k stars 2.29k forks source link

History Call Function #1142

Closed yhbcode000 closed 2 months ago

yhbcode000 commented 2 months ago

Description

This pull request introduces the #history_name feature, which allows users to dynamically load specific conversation histories into the current chat session. This functionality is intended to enhance user interaction by enabling seamless reference to past discussions without leaving the context of the current conversation.

引入了 #history_name 功能,允许用户动态地将特定对话历史加载到当前聊天会话中。此功能旨在通过使用户能够无缝参考过去的讨论而不离开当前对话的上下文,从而增强用户互动。

Screenshots

3f17ccfef6165ff2ac794f75a5329a5

修改

主要加了这里,其他的都是格式修改: image

yhbcode000 commented 2 months ago

考虑创建其他历史记录的vector store,没想好怎么弄,感觉前端甚至是持久化存储都要改。

yhbcode000 commented 2 months ago

需要还原对文件缩进和gitignore做的修改👀

我处理一下

yhbcode000 commented 2 months ago

加了一个开关,debug了load history部分。 image

hossain666 commented 2 months ago

_ Active Event: Building Fire.

I’m listening to "York County Fire" using the Scanner Radio app. You can listen to it by going to https://scannerradio.app/?l=NTQ5MTY_

yhbcode000 commented 2 months ago

[[file_name]] 可以,可以,我没有用过类似的语法,这个如果符合使用习惯的话,没问题。然后,关于开关的问题,我当时也是考虑到 # 开头也挺常见的,所以我就想,如果说能加一个开关是不是最好。因为怎么说呢,加一个开关,你之后如果说需要这个功能,你打开;不需要这个功能,而且你开头是 # 的,你就可以关掉。而且现在的话,代码里面现在是默认开启。然后如果说是在 config 里面调整是否开闭的话,那么在界面上没有显示,会不会显得不那么 user-friendly 之类的。

Keldos-Li commented 2 months ago

输入框上方是为了频繁切换用的功能按钮,这个引用一般开了就开了,关了就关了,我认为算长期的,不需要占用寸土寸金的地方。如果想在页面中显示,可以放在此处:

image
yhbcode000 commented 2 months ago

我稍后改一下