mirror of
https://github.com/labring/FastGPT.git
synced 2025-07-24 22:03:54 +00:00
feat: system prompt
This commit is contained in:
@@ -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: []
|
||||
|
Reference in New Issue
Block a user