2023-03-15 16:02:20 -04:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
|
|
|
DiscourseAi::Engine.routes.draw do
|
|
|
|
scope module: :ai_helper, path: "/ai-helper", defaults: { format: :json } do
|
2023-03-17 14:14:19 -04:00
|
|
|
get "prompts" => "assistant#prompts"
|
2023-03-15 16:02:20 -04:00
|
|
|
post "suggest" => "assistant#suggest"
|
|
|
|
end
|
2023-03-31 14:29:56 -04:00
|
|
|
|
|
|
|
scope module: :embeddings, path: "/embeddings", defaults: { format: :json } do
|
|
|
|
get "semantic-search" => "embeddings#search"
|
|
|
|
end
|
2023-04-04 10:24:09 -04:00
|
|
|
|
2023-05-05 14:28:31 -04:00
|
|
|
scope module: :ai_bot, path: "/ai-bot", defaults: { format: :json } do
|
|
|
|
post "post/:post_id/stop-streaming" => "bot#stop_streaming_response"
|
2023-05-16 13:38:21 -04:00
|
|
|
get "bot-username" => "bot#show_bot_username"
|
2023-05-05 14:28:31 -04:00
|
|
|
end
|
2023-03-15 16:02:20 -04:00
|
|
|
end
|
|
|
|
|
2023-06-16 06:32:54 -04:00
|
|
|
Discourse::Application.routes.draw { mount ::DiscourseAi::Engine, at: "discourse-ai" }
|