Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

话题是否可以重命名? #112

Closed
geekbb opened this issue Mar 28, 2023 · 9 comments
Closed

话题是否可以重命名? #112

geekbb opened this issue Mar 28, 2023 · 9 comments
Assignees
Labels
question Further information is requested

Comments

@geekbb
Copy link

geekbb commented Mar 28, 2023

CleanShot 2023-03-28 at 23 16 33@2x

@Yidadaa Yidadaa added the question Further information is requested label Mar 28, 2023
@fomalhaut1998
Copy link

我也想知道

@guotao
Copy link

guotao commented Mar 29, 2023

确实有时候会有手动改的需求。

@AprilNEA
Copy link
Contributor

我也想知道

回答是可以

@LetheTK
Copy link

LetheTK commented Mar 29, 2023

我也想知道

回答是可以

那怎么修改呢?

@yanglyu902
Copy link
Contributor

我之前看另一个app里的做法是按按钮提交一个prompt,类似于下面这种:
"Summarize our conversation with four to five words ONLY. Directly return your answer without any explanation or additional words. Do not include any quotation marks."
然后把结果存进title。
不知道这里可不可以实现一问一答之后后台自动提交问题,更新title。

AprilNEA added a commit to AprilNEA/ChatGPT-Next-Web that referenced this issue Mar 29, 2023
@AprilNEA
Copy link
Contributor

我之前看另一个app里的做法是按按钮提交一个prompt,类似于下面这种: "Summarize our conversation with four to five words ONLY. Directly return your answer without any explanation or additional words. Do not include any quotation marks." 然后把结果存进title。 不知道这里可不可以实现一问一答之后后台自动提交问题,更新title。

本 issue 的问题应该是手动更新话题名称。你的意思是每次问答后都更新话题,那么会产生几个问题

  • 手动命名后再问答是否还要更新话题(可以设置开关解决)
  • Token 消耗

ChatGPT 官方应该是在第一次问答后产生Topic,
还有一种方式是在当前 Session (一整个对话) 失焦后更新话题。

@yanglyu902
Copy link
Contributor

本 issue 的问题应该是手动更新话题名称。你的意思是每次问答后都更新话题,那么会产生几个问题

抱歉我说的不太清楚,我看的另一个app是用户手动点击一个类似于”summarize“的按钮,然后就可以根据目前的对话历史更新标题。官网的方案的确是一次问答后自动更新标题。

@yanglyu902
Copy link
Contributor

btw 刚试了一下,如果把en.ts里面的Store.Prompt.Topic改成下面这句,自动生成标题的效果是不错的:

  Store: {
    ...
    Prompt: {
      History: (content: string) =>
      ..
      Topic:
        "Please generate a four to five word title summarizing our conversation without any lead-in, punctuation, quotation marks, periods, symbols, or additional text. Remove enclosing quotation marks.",

之前自动生成的标题总是一句很长的话或者"Chitchat",效果不太好。

@Yidadaa Yidadaa self-assigned this Mar 29, 2023
Yidadaa added a commit that referenced this issue Mar 29, 2023
@Yidadaa
Copy link
Collaborator

Yidadaa commented Mar 29, 2023

已经更新提示词,点击标题同样可以重命名。

@Yidadaa Yidadaa closed this as completed Mar 29, 2023
yxl pushed a commit to yxl/ChatGPT-Next-Web that referenced this issue May 4, 2023
ryiann pushed a commit to ryiann/ChatGPT that referenced this issue Dec 1, 2023
…hatGPTNextWeb#112)

* Fix Console Warning in browser [UI/UX Page] [Chats] [Tauri Desktop]

[+] fix(chat.tsx): fix togglePinApp function to only execute if isApp is true
[+] feat(chat.tsx): update pinApp and togglePinApp to handle non-app environments

* Fix CI CodeQL not showing PR number

[+] fix(codeql.yml): add pull request number to the comment message
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

7 participants