10000 Add return type for default __call__ method · lapnd/llama-cpp-python@caf3c03 · GitHub
[go: up one dir, main page]

Skip to content

Commit caf3c03

Browse files
committed
Add return type for default __call__ method
1 parent 4aa349d commit caf3c03

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
@@ -480,7 +480,7 @@ def __call__(
480480
repeat_penalty: float = 1.1,
481481
top_k: int = 40,
482482
stream: bool = False,
483-
):
483+
) -> Union[Completion, Iterator[CompletionChunk]]:
484484
"""Generate text from a prompt.
485485
486486
Args:

0 commit comments

Comments
 (0)
0