Rakshitjan commited on
Commit
8a566b8
·
verified ·
1 Parent(s): 35e1cb5

Update main.py

Browse files
Files changed (1) hide show
  1. main.py +1 -2
main.py CHANGED
@@ -369,14 +369,13 @@ async def generate_roadmap(study_input: StudyInput):
369
  answer = response['choices'][0]['message']['content'].strip()
370
 
371
  # Second OpenAI API call
372
- provided_subtopics = phy+chem+maths
373
  response = openai.ChatCompletion.create(
374
  model="gpt-4o-mini",
375
  messages=[
376
  {
377
  "role": "system",
378
  "content": f'''
379
- you created a very good roadmap {answer} but you make sure that you dont forget any subtopics from {provided_subtopics}. ensure that the style is same as the previous roadmap.
380
  MAKE SURE YOU VERY VERY STRUCTLY FOLLOW THE JSON STRUCTURE BECAUSE I WILL PARSE YOUR OUTPUT TO JSON.
381
  DO not include json at the top of the answer
382
  '''
 
369
  answer = response['choices'][0]['message']['content'].strip()
370
 
371
  # Second OpenAI API call
 
372
  response = openai.ChatCompletion.create(
373
  model="gpt-4o-mini",
374
  messages=[
375
  {
376
  "role": "system",
377
  "content": f'''
378
+ you created a very good roadmap {answer} but you make sure that you dont forget any subtopics from Physics : {phy}, Chemistry : {chem} and Maths : {maths}. ensure that the style is same as the previous roadmap.
379
  MAKE SURE YOU VERY VERY STRUCTLY FOLLOW THE JSON STRUCTURE BECAUSE I WILL PARSE YOUR OUTPUT TO JSON.
380
  DO not include json at the top of the answer
381
  '''