import openai openai.api_key = "API_KEY_HERE" def chatGPTApi(user_input): #cleans typed text and file typos response = openai.chat.completions.create( model = "gpt-4-turbo-preview", messages=[ { "role": "system", "content": "AI Assistant. Teach the user about bananas, be concise, one paragraph max, bullet points" }, {"role": "user", "content": user_input} ], temperature=0.4, max_tokens=4096, top_p=0.5, frequency_penalty=0, presence_penalty=0 ) print (response.choices[0].message.content) return response.choices[0].message.content print ("please enter your text") text_input = input () chatGPTApi(text_input)