feat: web UI chat render, panels, presence + analytics
This commit is contained in:
@@ -13,7 +13,9 @@ from utils.read.models import (
|
||||
MessageVersionView,
|
||||
MessageView,
|
||||
Page,
|
||||
PinnedView,
|
||||
)
|
||||
from utils.read.pinned import get_pinned
|
||||
|
||||
router = APIRouter(prefix="/api", tags=["chats"], route_class=DishkaRoute)
|
||||
|
||||
@@ -55,6 +57,13 @@ async def chat_history(
|
||||
)
|
||||
|
||||
|
||||
@router.get("/chats/{chat_id}/pinned")
|
||||
async def chat_pinned(
|
||||
pool: FromDishka[asyncpg.Pool], chat_id: int, account_id: AccountId
|
||||
) -> PinnedView | None:
|
||||
return await get_pinned(pool, account_id, chat_id)
|
||||
|
||||
|
||||
@router.post("/chats/{chat_id}/enrich")
|
||||
async def enrich_chat(
|
||||
pool: FromDishka[asyncpg.Pool], chat_id: int, body: EnrichRequest
|
||||
|
||||
Reference in New Issue
Block a user