ChatGPTNextWeb / ChatGPTNextWeb/NextChat

[Feature Request] 当前对话设置中[预设提示词]列表可以使用JSON导入

Open
#6,029 1 comment 0 reactions 0 assignees View on GitHub
enhancement
Dominant language
TypeScript
Stars
88.8k
Forks
59.1k
PR merge metrics
No merged PRs in 30d

Description

### 🥰 Feature Description

![image](https://github.com/user-attachments/assets/6b0d00ed-f714-4342-b536-79fc1e123570)
如图:
应用场景:
1. 调试带对话上下文提示词的场景下,输入对话历史的情况
可以使用JSON自动导入messages

### 🧐 Proposed Solution

1. 将JSON可以导入为消息列表
JSON格式(同输入模型的messages格式)如下:

```json
[
{
"role":"system",
"content":"我是系统提示词"
},
{
"role":"user",
"content":"你是谁"
},
{
"role":"assistant",
"content":"我是人工智能助手"
}
]
```

将转换的内容,添加到预设提示词的为止,并且2者(JSON和对话数据)互相同步
![image](https://github.com/user-attachments/assets/9178b82d-6040-42e8-b355-5df31bc94525)

### 📝 Additional Information

_No response_

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.