OpenAI
duration = 10
topic = "Using Data in IEPs"
prompt = f"""
You are tasked with creating a {duration} minute lecture that covers "{topic}".
Give a numbered list of short topics(under 8 words) that you would cover in this lecture:
"""
response1 = openai.ChatCompletion.create(
model="gpt-4",
messages=[
{"role": "system", "content": "You are a one of the best teachers for adult students and seek to be educational and interesting."},
{"role": "user", "content": prompt},
]
)
print(response1)Pass in image
Utils
Errors
Old
Text completion
Prompt Examples
Tips
Last updated