17 lines
		
	
	
		
			537 B
		
	
	
	
		
			Python
		
	
	
	
			
		
		
	
	
			17 lines
		
	
	
		
			537 B
		
	
	
	
		
			Python
		
	
	
	
| 
 | |
| from django.urls import path, include
 | |
| from rest_framework.routers import DefaultRouter
 | |
| from apps.ichat.views import QueryLLMviewSet, ConversationViewSet
 | |
| from apps.ichat.views2 import WorkChain
 | |
| 
 | |
| API_BASE_URL = 'api/ichat/'
 | |
| 
 | |
| router = DefaultRouter()
 | |
| 
 | |
| router.register('conversation', ConversationViewSet, basename='conversation')
 | |
| router.register('message', QueryLLMviewSet, basename='message')
 | |
| urlpatterns = [
 | |
|     path(API_BASE_URL, include(router.urls)),
 | |
|     path(API_BASE_URL + 'workchain/ask/', WorkChain.as_view(), name='workchain')
 | |
| ]
 |