How to stream non-chat completions (used by older models like text-davinci-003) (cont.)
# Example of an OpenAI Completion request, using the stream=True option
# https://beta.openai.com/docs/api-reference/completions/create

# record the time before the request is sent
start_time = time.time()