Skip to content

Commit

Permalink
Disable chatbot in prod
Browse files Browse the repository at this point in the history
  • Loading branch information
RichDom2185 committed Oct 14, 2024
1 parent d7c147f commit bd1c4e4
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions lib/cadet_web/router.ex
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit bd1c4e4

Please sign in to comment.