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

[Feature] 请求自由设置是否 全局注入"全局 System Prompt": You are ChatGPT…… #2337

Closed
imldy opened this issue Jul 10, 2023 · 3 comments

Comments

@imldy
Copy link
Contributor

imldy commented Jul 10, 2023

这个功能与现有的问题有关吗?

已知在增加输入模板功能时,增加了“注入全局 System Prompt”功能用于“尽可能接近官方的使用体验”:#2144 (comment)

目前在不存在预设对话时会启用此预设。https://github.com/Yidadaa/ChatGPT-Next-Web/blob/c7e9f13d2ee6ef840395bdc07e7307419eb9f267/app/store/chat.ts#L391-L391

你想要什么功能或者有什么建议?

想有一个开关”是否全局注入“。

即:
1、无论是否存在预设
2、可自由开关

其他信息

理由:

1、即便存在其他预设,可能也需要 ChatGPT 官方 Prompt 来增加模型的使用体验。

2、有些时候可能并不需要客户端额外增加 Prompt,比如:

  1. 反代API、中转API已经增加了
  2. 模型不需要/想要纯净体验(无论是 OpenAI 模型,亦或者自建模型)
  3. ChatGPT Web API 天然的存在这个Prompt,目前有 OpenAI API to ChatGPT Web API 项目( fakeopen 已支持 ChatGPT 转 Turbo API pengzhile/pandora#837 ),可以让 ChatGPT-Next-Web 调用 ChatGPT Web API
    以上三个原因各有重叠部分。
@Issues-translate-bot
Copy link

Bot detected the issue body's language is not English, translate it automatically.


Title: [Feature] Request to freely set whether to inject "Global System Prompt" globally: You are ChatGPT...

**Is this feature related to an existing issue? **

It is known that when adding the input template function, the "inject global System Prompt" function is added for "as close as possible to the official user experience": #2144 issuecomment-1606675213

This preset is currently enabled when no preset dialog exists. https://github.com/Yidadaa/ChatGPT-Next-Web/blob/c7e9f13d2ee6ef840395bdc07e7307419eb9f267/app/store/chat.ts#L391-L391

**What features do you want or have any suggestions? **

I want to have a switch "whether to inject globally".

Right now:

  1. Regardless of whether there is a preset
  2. Can be switched freely

other information

reason:

  1. Even if there are other presets, ChatGPT official prompt may be needed to increase the user experience of the model.

  2. In some cases, the client may not need to add an additional prompt, such as:

  3. Anti-generation API and transit API have been added

  4. The model does not need/want a pure experience (whether it is an OpenAI model or a self-built model)

  5. ChatGPT Web API naturally exists this Prompt. Currently, there is an OpenAI API to ChatGPT Web API project (fakeopen 已支持 ChatGPT 转 Turbo API pengzhile/pandora#837), which allows ChatGPT-Next-Web to call ChatGPT Web API
    All three of these reasons overlap.

@imldy
Copy link
Contributor Author

imldy commented Jul 10, 2023

已开发完成,测试后发起PR。

@Issues-translate-bot
Copy link

Bot detected the issue body's language is not English, translate it automatically.


The development has been completed, and a PR will be initiated after testing.

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

No branches or pull requests

2 participants