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 00dd8ac

Browse filesBrowse files
Fix when stopping criteria's are none
1 parent 8fe0c3c commit 00dd8ac
Copy full SHA for 00dd8ac

File tree

Expand file treeCollapse file tree

1 file changed

+3
-0
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+3
-0
lines changed

‎llama_cpp/llama.py

Copy file name to clipboardExpand all lines: llama_cpp/llama.py
+3Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -624,6 +624,9 @@ def _create_completion(
624624
stopping_criterias=None
625625
) -> Union[Iterator[Completion], Iterator[CompletionChunk]]:
626626
assert self.ctx is not None
627+
628+
if stopping_criterias is None:
629+
stopping_criterias = []
627630
completion_id: str = f"cmpl-{str(uuid.uuid4())}"
628631
created: int = int(time.time())
629632
completion_tokens: List[int] = []

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.