feat: system prompt

This commit is contained in:
archer
2023-05-23 19:13:01 +08:00
parent b8f08eb33e
commit 6014a56e54
9 changed files with 118 additions and 61 deletions

View File

@@ -48,13 +48,32 @@ const ChatSchema = new Schema({
required: true
},
quote: {
type: [{ id: String, q: String, a: String, isEdit: Boolean }],
type: [
{
id: {
type: String,
required: true
},
q: {
type: String,
default: ''
},
a: {
type: String,
default: ''
},
isEdit: {
type: String,
default: false
}
}
],
default: []
},
systemPrompt: {
type: String,
default: ''
}
// systemPrompt: {
// type: String,
// default: ''
// }
}
],
default: []