Untitled

 avatar
unknown
python
2 years ago
270 B
5
Indexable
prompt = f"Please correct spelling and grammar: {user_input_text}"

gpt_response = openai.ChatCompletion.create(
        model = "gpt-3.5-turbo",
        messages = [
            {"role": "user", "content": prompt}
        ]
        )['choices'][0]['message']['content']
Editor is loading...