How to stream non-chat completions (used by older models like text-davinci-003) (cont.)
# print the time delay and text received
print(f"Full response received {response_time:.2f} seconds after request")
print(f"Full text received: {completion_text}")