ChatGPTNextWeb / ChatGPTNextWeb/NextChat
[Feature Request] 当前对话设置中[预设提示词]列表可以使用JSON导入
Open
enhancement
- Dominant language
- TypeScript
- Stars
- 88.8k
- Forks
- 59.1k
- PR merge metrics
- No merged PRs in 30d
Description
### 🥰 Feature Description

如图:
应用场景:
1. 调试带对话上下文提示词的场景下,输入对话历史的情况
可以使用JSON自动导入messages
### 🧐 Proposed Solution
1. 将JSON可以导入为消息列表
JSON格式(同输入模型的messages格式)如下:
```json
[
{
"role":"system",
"content":"我是系统提示词"
},
{
"role":"user",
"content":"你是谁"
},
{
"role":"assistant",
"content":"我是人工智能助手"
}
]
```
将转换的内容,添加到预设提示词的为止,并且2者(JSON和对话数据)互相同步

### 📝 Additional Information
_No response_
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.