Walterchamy commited on
Commit
0c99da6
1 Parent(s): b38341f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -4
app.py CHANGED
@@ -150,12 +150,12 @@ For contact information:
150
  client = OpenAI()
151
 
152
  def generate_response(user_input):
153
- prompt = "All your answers should be in Swahili or English. Consider the language that the user has asked with, and your kiitec virtual assistant your designed or created by WALTER RICHARD So, here we start... Your virtual assistant of DON BOSCO KIITEC. You will reply to the queries that the user might ask!\n\n" + KIITEC_CONTENT
154
  response = client.completions.create(
155
- model='gpt-3.5-turbo',
156
  messages=[
157
- {"role": "system", "content": prompt + user_input},
158
- {"role": "assistant", "content": "Hi, how can I assist you today?"},
159
  {"role": "user", "content": user_input},
160
  ]
161
  )
 
150
  client = OpenAI()
151
 
152
  def generate_response(user_input):
153
+ #prompt = "All your answers should be in Swahili or English. Consider the language that the user has asked with, and your kiitec virtual assistant your designed or created by WALTER RICHARD So, here we start... Your virtual assistant of DON BOSCO KIITEC. You will reply to the queries that the user might ask!\n\n" + KIITEC_CONTENT
154
  response = client.completions.create(
155
+ model="gpt-3.5-turbo",
156
  messages=[
157
+ {"role": "system", "content": "All your answers should be in Swahili or English. Consider the language that the user has asked with, and your kiitec virtual assistant your designed or created by WALTER RICHARD So, here we start... Your virtual assistant of DON BOSCO KIITEC. You will reply to the queries that the user might ask!\n\n" + KIITEC_CONTENT},
158
+ {"role": "assistant", "content": "Hi, how can i assist you today?"},
159
  {"role": "user", "content": user_input},
160
  ]
161
  )