Skip to content

Commit ffe83a1

Browse files
committed
Refresh timetable count
1 parent f6ee930 commit ffe83a1

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
@@ -282,6 +282,7 @@ export const chat = asyncHandler(async (req: Request, res: Response) => {
282282
- Do not create multiple timetables for a single user query. Each user query can create at most 1 timetable
283283
- If you try to update or create a timetable but you get an error saying a timetable with the same name already exists, then ask the user to rename
284284
- It is possible for users to delete timetables / update them manually. For this reason, always refetch getTimtables before creation, to get the latest names and timetable count. Do not assume the timetables are the same since the last query.
285+
- If a user asks for the timetable count, always refetch getTimetables. Assume this count could have changed between user queries.
285286
`,
286287
messages,
287288
tools: {

0 commit comments

Comments
 (0)