async def create_chat(
    *,
    db: AsyncSession = Depends(get_db),
    chat_in: schemas.ChatCreate,
    user: schemas.User = Depends(get_user),
) -> schemas.Chat:
    """Create a new chat.

    Args:
    ----
        db: The database session.
        chat_in: The chat creation data.
        user: The current user.

    Returns:
    -------
        schemas.Chat: The created chat.
    """
    chat = await crud.chat.create(db=db, obj_in=chat_in, current_user=user)
    return chat
Create a new chat.

    Args:
    ----
        db: The database session.
        chat_in: The chat creation data.
        user: The current user.

    Returns:
    -------
        schemas.Chat: The created chat.
    
backend/airweave/api/v1/endpoints/chat.py