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)