From 0bc9cc2e01772394792840edbbfe3dbcdd7c8363 Mon Sep 17 00:00:00 2001 From: John Wang Date: Sun, 21 May 2023 11:13:46 +0800 Subject: [PATCH] feat: remove enter after A: in chat mode prompt --- api/core/completion.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/api/core/completion.py b/api/core/completion.py index 9eccf79721..5bacce8f75 100644 --- a/api/core/completion.py +++ b/api/core/completion.py @@ -182,8 +182,7 @@ Avoid mentioning that you obtained the information from the context. And answer according to the language of the user's question. Q:{query} -A: -""" +A:""" # construct main prompt human_message = PromptBuilder.to_human_message(