Spaces:
Sleeping
Sleeping
Walterchamy
commited on
Commit
•
0c99da6
1
Parent(s):
b38341f
Update app.py
Browse files
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=
|
156 |
messages=[
|
157 |
-
|
158 |
-
{"role": "assistant", "content": "Hi, how can
|
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 |
)
|