feat: add with-history prompt (#2156)

Co-authored-by: liqiankun.1111 <liqiankun.1111@bytedance.com>
This commit is contained in:
qiankunli 2023-11-24 10:05:50 +08:00 committed by GitHub
parent 1b9b777eaf
commit 76151e884a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 7 additions and 0 deletions

View File

@ -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