Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit a6372a7

Browse filesBrowse files
committed
Update stop sequences for chat
1 parent 83b2be6 commit a6372a7
Copy full SHA for a6372a7

File tree

Expand file treeCollapse file tree

1 file changed

+1
-1
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+1
-1
lines changed

‎llama_cpp/llama.py

Copy file name to clipboardExpand all lines: llama_cpp/llama.py
+1-1Lines 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)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.