Skip to content

Commit

Permalink
fix(llm): only enable vectorize api in DEBUG mode
Browse files Browse the repository at this point in the history
  • Loading branch information
creeper12356 committed Sep 26, 2024
1 parent b78d22f commit 7f533db
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion router.go
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,9 @@ func registerRouter(r *gin.Engine) {
llmGroup := needAuthGroup.Group(("/llm"))
llmGroup.GET("/review/opt", handler.OptCourseReviewHandler)
llmGroup.GET("/course/summary/:courseID", handler.GetCourseSummaryHandler)
llmGroup.GET("/vectorize/:courseID", handler.VectorizeCourseHandler)
llmGroup.GET("/course/match", handler.GetMatchCoursesHandler)

if util.IsDebug() {
llmGroup.GET("/vectorize/:courseID", handler.VectorizeCourseHandler)
}
}

0 comments on commit 7f533db

Please sign in to comment.