From 655a4071decfdf402ec2926bbd315fce33d9dea1 Mon Sep 17 00:00:00 2001 From: Aaron Pham <29749331+aarnphm@users.noreply.github.com> Date: Wed, 8 Nov 2023 05:37:39 -0500 Subject: [PATCH] fix: unbound variable for completion client (#587) Signed-off-by: Aaron Pham <29749331+aarnphm@users.noreply.github.com> --- examples/openai_completion_client.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/openai_completion_client.py b/examples/openai_completion_client.py index 26d80a89..a619f70c 100644 --- a/examples/openai_completion_client.py +++ b/examples/openai_completion_client.py @@ -15,6 +15,6 @@ if stream: for chunk in completions: text = chunk.choices[0].text if text: - print(content, flush=True, end='') + print(text, flush=True, end='') else: print(completions)