9ee8daa295
- Added WebSocket endpoint for real-time chat interactions. - Refactored ChatPage component to utilize WebSocket for sending and receiving messages. - Updated chat service to handle streaming responses from the LLM agent. - Introduced error handling for WebSocket connections and message processing. - Modified Editor_Test to include AppShellWithMenu for better layout. - Adjusted file path in generar_tree.py for correct directory structure. - Created llm_chat_endpoint_v1.py and llm_chat_srvc.py for handling chat requests and responses. - Established logging for WebSocket interactions and errors.
14 lines
639 B
Python
14 lines
639 B
Python
# backend/api/router_v1.py
|
|
|
|
from fastapi import APIRouter
|
|
from backend.domains.experiments import charts_examples_endpoint_v1 as charts
|
|
from backend.domains.experiments import ping_endpoint_v1
|
|
from backend.domains.text_manager import text_manager_endpoint_v1
|
|
from backend.domains.llms import llm_chat_endpoint_v1
|
|
|
|
router = APIRouter()
|
|
router.include_router(ping_endpoint_v1.router, prefix="/ping")
|
|
router.include_router(text_manager_endpoint_v1.router, prefix="/text_manager")
|
|
router.include_router(charts.router, prefix="/charts")
|
|
router.include_router(llm_chat_endpoint_v1.router, prefix="/llm", tags=["Agente LLM"]) # ← Nuevo router
|