added backend which maintains ai instances;
added frontend as control panel
This commit is contained in:
10
backend/ai/urls.py
Normal file
10
backend/ai/urls.py
Normal file
@@ -0,0 +1,10 @@
|
||||
from django.urls import path
|
||||
|
||||
from .views import AiConfigApiView, AiApiView, AiDiscordApiView, AiChatTextApiView
|
||||
|
||||
urlpatterns = [
|
||||
path('api/v1/ai/<name>/chat/text', AiChatTextApiView.as_view()),
|
||||
path('api/v1/ai/<name>/discord', AiDiscordApiView.as_view()),
|
||||
path('api/v1/ai/config', AiConfigApiView.as_view()),
|
||||
path('api/v1/ai', AiApiView.as_view()),
|
||||
]
|
||||
Reference in New Issue
Block a user