From 512c4d0f73e914290017f211a1370c451b883c46 Mon Sep 17 00:00:00 2001 From: josc146 Date: Fri, 22 Dec 2023 10:51:09 +0800 Subject: [PATCH] improve role-playing effect --- backend-python/routes/completion.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/backend-python/routes/completion.py b/backend-python/routes/completion.py index 9449e8f..6bbd5c5 100644 --- a/backend-python/routes/completion.py +++ b/backend-python/routes/completion.py @@ -334,6 +334,8 @@ The following is a coherent verbose detailed conversation between a girl named { body.stop.append(f"\n\n{bot_code}") elif body.stop is None: body.stop = default_stop + if not body.presystem: + body.stop.append("\n\n") if body.stream: return EventSourceResponse(