Open_AI_o1_Hackathon / components /study_path_generator.py
Ashar086's picture
Update components/study_path_generator.py
05bf03d verified
raw
history blame contribute delete
350 Bytes
from utils.aiml_api_utils import call_aiml_api
def generate_study_path(level, topic):
# Generate the prompt based on user inputs
prompt = f"Create a {level} level study path for learning {topic}."
# Call the AI/ML API to get the generated study path
study_plan = call_aiml_api(prompt, max_tokens=500)
return study_plan