Skip to content

Commit 514d115

Browse files
committed
Fix genearitng timetables for fake courses
1 parent 188770a commit 514d115

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

course-matrix/backend/src/controllers/aiController.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -255,6 +255,7 @@ export const chat = asyncHandler(async (req: Request, res: Response) => {
255255
- If the user provides a course code of length 6 like CSCA08, then assume they mean CSCA08H3 (H3 appended)
256256
- If the user wants to create a timetable, first call getCourses to get course information on the requested courses, then call generateTimetable.
257257
- Do not make up fake courses or offerings.
258+
- If a user asks about a course that you do not know of, acknowledge this.
258259
- For delete timetable requests, if the user asks to delete an ambiguous timetable name (i.e many with similar name exist) then ask them to clarify which one
259260
- For delete timetable requests, first check that the timetable the user is refering to exists
260261
- For delete timetable requests, ask for user confirmation with command "/timetable confirm" before proceeding. If their next message is anything other than "/timetable confim" then cancel the deletion.

0 commit comments

Comments
 (0)