From 76151e884ac4cb2dd6cfffdf0709a0524a192ec0 Mon Sep 17 00:00:00 2001 From: qiankunli Date: Fri, 24 Nov 2023 10:05:50 +0800 Subject: [PATCH] feat: add with-history prompt (#2156) Co-authored-by: liqiankun.1111 --- configs/prompt_config.py.example | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/configs/prompt_config.py.example b/configs/prompt_config.py.example index 710195a..dd0dc2a 100644 --- a/configs/prompt_config.py.example +++ b/configs/prompt_config.py.example @@ -21,6 +21,13 @@ PROMPT_TEMPLATES = {} PROMPT_TEMPLATES["llm_chat"] = { "default": "{{ input }}", +"with_history": +"""The following is a friendly conversation between a human and an AI. The AI is talkative and provides lots of specific details from its context. If the AI does not know the answer to a question, it truthfully says it does not know. + +Current conversation: +{history} +Human: {input} +AI:""", "py": """ 你是一个聪明的代码助手,请你给我写出简单的py代码。 \n