From b92ecf219964855cf3c1eaa621d014f8805b4a34 Mon Sep 17 00:00:00 2001 From: aries-ckt <916701291@qq.com> Date: Thu, 18 May 2023 15:39:28 +0800 Subject: [PATCH] fix:prompt --- pilot/server/webserver.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pilot/server/webserver.py b/pilot/server/webserver.py index e3d7a6dbb..c2a780244 100644 --- a/pilot/server/webserver.py +++ b/pilot/server/webserver.py @@ -254,7 +254,7 @@ def http_bot(state, mode, sql_mode, db_selector, temperature, max_new_tokens, re result = prompt_template.format(context="\n".join(context), question=query) state.messages[-2][1] = result prompt = state.get_prompt() - print("prompt length:" + len(prompt)) + print("prompt length:" + str(len(prompt))) if len(prompt) > 4000: logger.info("prompt length greater than 4000, rebuild")