"docs/vscode:/vscode.git/clone" did not exist on "456d3b97a6912c8e929177ea62307decbc0141cf"
Unverified Commit 921406f7 authored by Ikko Eltociear Ashimine's avatar Ikko Eltociear Ashimine Committed by GitHub
Browse files

Update client.py (#1026)

recieve -> receive
parent c7047d73
...@@ -17,7 +17,7 @@ def generate(prompt, context): ...@@ -17,7 +17,7 @@ def generate(prompt, context):
for line in r.iter_lines(): for line in r.iter_lines():
body = json.loads(line) body = json.loads(line)
response_part = body.get('response', '') 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) print(response_part, end='', flush=True)
if 'error' in body: if 'error' in body:
...@@ -35,4 +35,4 @@ def main(): ...@@ -35,4 +35,4 @@ def main():
print() print()
if __name__ == "__main__": if __name__ == "__main__":
main() main()
\ No newline at end of file
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment