File size: 519 Bytes
9cf5b3f
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
"""
BharatGraph - Phase 31: /runtime endpoint
Returns current hardware detection results and active profile settings.
Pure ASCII.
"""
from fastapi import APIRouter
from config.runtime_profile import PROFILE

router = APIRouter()


@router.get("/runtime")
def get_runtime_profile():
    """
    Returns the auto-detected hardware profile and active settings.
    Useful for debugging deployment performance issues.
    Force a profile by setting: BHARATGRAPH_PROFILE=low|medium|high
    """
    return PROFILE.to_dict()