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 Aug 25, 2024
1 parent 2d43f01 commit d9d733e
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 d9d733e

Please sign in to comment.