8000 Update stop sequences for chat · Redwa/llama-cpp-python@a6372a7 · GitHub
[go: up one dir, main page]

Skip to content

Commit a6372a7

Browse files
committed
Update stop sequences for chat
1 parent 83b2be6 commit a6372a7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llama_cpp/llama.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -701,7 +701,7 @@ def create_chat_completion(
701701
for message in messages
702702
)
703703
PROMPT = chat_history + "### Assistant:"
704-
PROMPT_STOP = ["### Assistant:", "### Human:", "\n"]
704+
PROMPT_STOP = ["### Assistant:", "### Human:"]
705705
completion_or_chunks = self(
706706
prompt=PROMPT,
707707
stop=PROMPT_STOP + stop,

0 commit comments

Comments
 (0)
0