Neurolingua commited on
Commit
2b9b02c
·
verified ·
1 Parent(s): 2a0685f

Update student_functions.py

Browse files
Files changed (1) hide show
  1. student_functions.py +3 -3
student_functions.py CHANGED
@@ -70,7 +70,7 @@ def generate_ai_response(query):
70
  ai_response = ''
71
  chat_response = client.chat.complete(
72
  model=MODEL,
73
- messages=messages=[
74
  {"role": "system", "content": "You are a teaching assistant."},
75
  {"role": "user", "content": f'Assist the user clearly for his questions: {query}.'},
76
  ]
@@ -84,7 +84,7 @@ def generate_project_idea(subject, topic, overview):
84
  string = ''
85
  chat_response = client.chat.complete(
86
  model=MODEL,
87
- messages=messages=[
88
  {"role": "system", "content": "You are a project building assistant."},
89
  {"role": "user",
90
  "content": f'''Give the different project ideas to build project in {subject} specifically in {topic} for school students. {overview}.'''},
@@ -201,7 +201,7 @@ def content_translate(text):
201
  translated_content = ''
202
  chat_response = client.chat.complete(
203
  model=MODEL,
204
- messages=messages=[
205
  {"role": "system", "content": "You are the best teaching assistant."},
206
  {"role": "user", "content": f'''Translate the text to hindi. Text: {text}'''},
207
  ]
 
70
  ai_response = ''
71
  chat_response = client.chat.complete(
72
  model=MODEL,
73
+ messages=[
74
  {"role": "system", "content": "You are a teaching assistant."},
75
  {"role": "user", "content": f'Assist the user clearly for his questions: {query}.'},
76
  ]
 
84
  string = ''
85
  chat_response = client.chat.complete(
86
  model=MODEL,
87
+ messages=[
88
  {"role": "system", "content": "You are a project building assistant."},
89
  {"role": "user",
90
  "content": f'''Give the different project ideas to build project in {subject} specifically in {topic} for school students. {overview}.'''},
 
201
  translated_content = ''
202
  chat_response = client.chat.complete(
203
  model=MODEL,
204
+ messages=[
205
  {"role": "system", "content": "You are the best teaching assistant."},
206
  {"role": "user", "content": f'''Translate the text to hindi. Text: {text}'''},
207
  ]