
Implement a new endpoint that converts natural language input into structured tasks using an LLM. Features include: - LLM service abstraction with support for OpenAI and Google Gemini - Dependency injection pattern for easy provider switching - Robust error handling and response formatting - Integration with existing user authentication and task creation - Fallback to mock LLM service for testing or development
9 lines
316 B
Python
9 lines
316 B
Python
from fastapi import APIRouter
|
|
|
|
from app.api.routers import tasks, auth, chat
|
|
|
|
api_router = APIRouter()
|
|
api_router.include_router(tasks.router, prefix="/tasks", tags=["tasks"])
|
|
api_router.include_router(auth.router, prefix="/auth", tags=["auth"])
|
|
api_router.include_router(chat.router, prefix="/chat", tags=["chat"])
|