Update client.py : Adding missing arg "best_of" in generate_stream function

Missing the "best_of" arg in generate_stream function
This commit is contained in:
yash bhaskar 2023-07-07 22:06:09 +05:30 committed by GitHub
parent e943a294bc
commit 5cdd242fec
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -152,6 +152,7 @@ class Client:
def generate_stream(
self,
prompt: str,
best_of: Optional[int] = None,
do_sample: bool = False,
max_new_tokens: int = 20,
repetition_penalty: Optional[float] = None,
@ -204,7 +205,7 @@ class Client:
"""
# Validate parameters
parameters = Parameters(
best_of=None,
best_of=best_of,
details=True,
decoder_input_details=False,
do_sample=do_sample,