File tree Expand file tree Collapse file tree 2 files changed +3
-0
lines changed
services/chat-backend/src Expand file tree Collapse file tree 2 files changed +3
-0
lines changed Original file line number Diff line number Diff line change 1010from fastapi .responses import JSONResponse # noqa: E402
1111from fastapi .routing import APIRoute # noqa: E402
1212from fastapi .openapi .utils import get_openapi
13+ import os
1314
1415from src .core .config import get_settings # noqa: E402
1516from src .middleware import AuditMiddleware # noqa: E402
1819from src .utils .openapi_converter import convert_openapi_spec # noqa: E402
1920
2021config = get_settings ()
22+ os .environ ["LITELLM_LOCAL_MODEL_COST_MAP" ] = str (config .LITELLM_LOCAL_MODEL_COST_MAP )
2123logger = logging .getLogger (__name__ )
2224
2325
Original file line number Diff line number Diff line change @@ -19,6 +19,7 @@ class Settings(BaseSettings):
1919 API_PREFIX : str = "/api"
2020 ENVIRONMENT : Literal ["development" , "staging" , "production" ] = "production"
2121 NUM_PROXIES : int
22+ LITELLM_LOCAL_MODEL_COST_MAP : bool = True
2223
2324
2425@lru_cache ()
You can’t perform that action at this time.
0 commit comments