From bd1c4e4231ca52b0b8176a19306a670e2a81979b Mon Sep 17 00:00:00 2001 From: Richard Dominick <34370238+RichDom2185@users.noreply.github.com> Date: Sun, 11 Aug 2024 18:55:06 +0800 Subject: [PATCH] Disable chatbot in prod --- lib/cadet_web/router.ex | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/lib/cadet_web/router.ex b/lib/cadet_web/router.ex index 949805c34..541c5aee9 100644 --- a/lib/cadet_web/router.ex +++ b/lib/cadet_web/router.ex @@ -76,12 +76,12 @@ defmodule CadetWeb.Router do end # LLM-related endpoints - scope "/v2/chats", CadetWeb do - pipe_through([:api, :auth, :ensure_auth, :rate_limit]) + # scope "/v2/chats", CadetWeb do + # pipe_through([:api, :auth, :ensure_auth, :rate_limit]) - post("", ChatController, :init_chat) - post("/:conversationId/message", ChatController, :chat) - end + # post("", ChatController, :init_chat) + # post("/:conversationId/message", ChatController, :chat) + # end # Authenticated Pages with course scope "/v2/courses/:course_id", CadetWeb do