def prompt_to_essay(prompt):
        """ Process GPT-3 prompt and clean string . """
        response = openai.Completion.create(
            engine="text-davinci-002",
            prompt=prompt,
            temperature=0.0,
            max_tokens=256,
            top_p=1.0,
            frequency_penalty=0.0,
            presence_penalty=0.0
        )
        return response['choices'][0]['text'].strip().replace('\n', ' ')
 Process GPT-3 prompt and clean string . 
examples/GPT3NewsSummary/main.py