o
    D`h}                     @   sn   d dl mZ ddlmZmZ ddlmZ d dlZejej	d e
eZe Zejdedd	efd
dZdS )    )	APIRouter   )ChatRequestChatResponse)generate_responseN)levelz/chat)response_modelrequestc                    s.   t d t| j}g }t d ||dS )NzProcessing chat requestz#Chat request processed successfully)responsesearch_results)loggerinfor   query)r	   response_textr    r   _/var/www/eduai.edurigo.com/doc_train/edurigo_ai/my_career/testing/advanced_chatbot/endpoints.pychat   s   



r   )fastapir   schemasr   r   chatbotr   loggingbasicConfigINFO	getLogger__name__r   routerpostr   r   r   r   r   <module>   s    
