async def api_version():
    """
    Returns the current version of the API.

    This asynchronous function retrieves the version of the API from the
    __version__ variable and returns it in a dictionary.

    Returns:
        dict: A dictionary containing the API version.
    """
    return {"version": __version__}

    Returns the current version of the API.

    This asynchronous function retrieves the version of the API from the
    __version__ variable and returns it in a dictionary.

    Returns:
        dict: A dictionary containing the API version.
    
src/autotrain/app/api_routes.py