Update client.py (#1026)

recieve -> receive
This commit is contained in:
Ikko Eltociear Ashimine 2023-11-08 02:55:47 +09:00 committed by GitHub
parent c7047d7353
commit 921406f721
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -17,7 +17,7 @@ def generate(prompt, context):
for line in r.iter_lines():
body = json.loads(line)
response_part = body.get('response', '')
# the response streams one token at a time, print that as we recieve it
# the response streams one token at a time, print that as we receive it
print(response_part, end='', flush=True)
if 'error' in body:
@ -35,4 +35,4 @@ def main():
print()
if __name__ == "__main__":
main()
main()