We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5f8f369 commit 9c8f4dcCopy full SHA for 9c8f4dc
llama_cpp/llama.py
@@ -921,6 +921,7 @@ def _create_completion(
921
grammar: Optional[LlamaGrammar] = None,
922
) -> Union[Iterator[Completion], Iterator[CompletionChunk]]:
923
assert self.ctx is not None
924
+ assert suffix is None or suffix.__class__ is str
925
926
completion_id: str = f"cmpl-{str(uuid.uuid4())}"
927
created: int = int(time.time())
0 commit comments