Open_AI_o1_Hackathon / components /study_path_generator.py
Ashar086's picture
Create components/study_path_generator.py
b516c5f verified
raw
history blame
236 Bytes
from utils.openai_utils import call_openai
def generate_study_path(level, topic):
prompt = f"Generate a {level.lower()} level study plan for learning {topic}."
response = call_openai(prompt, max_tokens=300)
return response