'''example completion with openai > 1.1'''
from openai import OpenAI
client = OpenAI()
prompt = "True or false: a banana is smaller than a lemon.\n\n"
response = client.completions.create(
prompt=prompt,
model="gpt-3.5-turbo-instruct",
top_p=0.5, max_tokens=50,
stream=True)
for part in response:
print(part.choices[0].text or "")
False