Skip to content

Commit

Permalink
Update urls.py
Browse files Browse the repository at this point in the history
  • Loading branch information
AkhileshNegi committed Mar 5, 2024
1 parent b187944 commit 523a8b2
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion llm/urls.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,15 +14,23 @@
1. Import the include() function: from django.urls import include, path
2. Add a URL to urlpatterns: path('blog/', include('blog.urls'))
"""

from django.contrib import admin
from django.urls import path

from llm.api import create_chat, set_system_prompt, FileUploadView, set_evaluator_prompt
from llm.api import (
create_chat,
set_system_prompt,
FileUploadView,
set_evaluator_prompt,
set_examples_text,
)

urlpatterns = [
path("admin/", admin.site.urls),
path("api/chat", create_chat, name="create_chat"),
path("api/upload", FileUploadView.as_view(), name="file_upload"),
path("api/system_prompt", set_system_prompt, name="set_system_prompt"),
path("api/evaluator_prompt", set_evaluator_prompt, name="set_evaluator_prompt"),
path("api/examples_text", set_examples_text, name="set_examples_text"),
]

0 comments on commit 523a8b2

Please sign in to comment.