From 7c550a061cc412f899a6761d84cae1d1cb2a8635 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 1ee304c01..de650ba9f 100644 --- a/lib/cadet_web/router.ex +++ b/lib/cadet_web/router.ex @@ -80,12 +80,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