From 921406f721389c1822d09ac8a3145cf3e8ee529a Mon Sep 17 00:00:00 2001 From: Ikko Eltociear Ashimine Date: Wed, 8 Nov 2023 02:55:47 +0900 Subject: [PATCH] Update client.py (#1026) recieve -> receive --- examples/python-simplegenerate/client.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/python-simplegenerate/client.py b/examples/python-simplegenerate/client.py index 599ebec7..9bd0d035 100644 --- a/examples/python-simplegenerate/client.py +++ b/examples/python-simplegenerate/client.py @@ -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() \ No newline at end of file + main()