mirror of
https://github.com/morgan9e/chatgpt-web
synced 2026-04-13 16:04:05 +09:00
Allow both STARTUP and START-PROMPT in system prompt
This commit is contained in:
@@ -162,6 +162,7 @@ export class ChatRequest {
|
||||
const sp = messagePayload[0]
|
||||
if (sp) {
|
||||
if (messagePayload.length > 1) {
|
||||
sp.content = sp.content.replace(/::STARTUP::[\s\S]*::START-PROMPT::/, '::START-PROMPT::')
|
||||
sp.content = sp.content.replace(/::STARTUP::[\s\S]*$/, '')
|
||||
} else {
|
||||
sp.content = sp.content.replace(/::STARTUP::[\s]*/, '')
|
||||
|
||||
Reference in New Issue
Block a user