MCPcopy Create free account
hub / github.com/OpenDCAI/Paper2Any / get_billing_mode

Function get_billing_mode

fastapi_app/services/managed_api_service.py:129–133  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

127
128
129def get_billing_mode() -> str:
130 mode = (settings.APP_BILLING_MODE or "paid").strip().lower()
131 if mode not in {"paid", "free"}:
132 return "paid"
133 return mode
134
135
136def is_free_billing_mode() -> bool:

Callers 2

is_free_billing_modeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected