Allow both STARTUP and START-PROMPT in system prompt
This commit is contained in:
parent
155b067236
commit
74cb9bd77a
|
@ -162,6 +162,7 @@ export class ChatRequest {
|
||||||
const sp = messagePayload[0]
|
const sp = messagePayload[0]
|
||||||
if (sp) {
|
if (sp) {
|
||||||
if (messagePayload.length > 1) {
|
if (messagePayload.length > 1) {
|
||||||
|
sp.content = sp.content.replace(/::STARTUP::[\s\S]*::START-PROMPT::/, '::START-PROMPT::')
|
||||||
sp.content = sp.content.replace(/::STARTUP::[\s\S]*$/, '')
|
sp.content = sp.content.replace(/::STARTUP::[\s\S]*$/, '')
|
||||||
} else {
|
} else {
|
||||||
sp.content = sp.content.replace(/::STARTUP::[\s]*/, '')
|
sp.content = sp.content.replace(/::STARTUP::[\s]*/, '')
|
||||||
|
|
Loading…
Reference in New Issue