feat: add with-history prompt (#2156)
Co-authored-by: liqiankun.1111 <liqiankun.1111@bytedance.com>
This commit is contained in:
parent
1b9b777eaf
commit
76151e884a
|
|
@ -21,6 +21,13 @@ PROMPT_TEMPLATES = {}
|
||||||
|
|
||||||
PROMPT_TEMPLATES["llm_chat"] = {
|
PROMPT_TEMPLATES["llm_chat"] = {
|
||||||
"default": "{{ input }}",
|
"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":
|
||||||
"""
|
"""
|
||||||
你是一个聪明的代码助手,请你给我写出简单的py代码。 \n
|
你是一个聪明的代码助手,请你给我写出简单的py代码。 \n
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue