mirror of
https://github.com/abetlen/llama-cpp-python.git
synced 2023-09-07 17:34:22 +03:00
Style fix
This commit is contained in:
@@ -330,7 +330,7 @@ class Llama:
|
|||||||
repeat_penalty: float = 1.1,
|
repeat_penalty: float = 1.1,
|
||||||
top_k: int = 40,
|
top_k: int = 40,
|
||||||
stream: bool = False,
|
stream: bool = False,
|
||||||
) -> Union[Iterator[Completion], Iterator[CompletionChunk],]:
|
) -> Union[Iterator[Completion], Iterator[CompletionChunk]]:
|
||||||
assert self.ctx is not None
|
assert self.ctx is not None
|
||||||
completion_id = f"cmpl-{str(uuid.uuid4())}"
|
completion_id = f"cmpl-{str(uuid.uuid4())}"
|
||||||
created = int(time.time())
|
created = int(time.time())
|
||||||
|
|||||||
Reference in New Issue
Block a user