(value: Any = None)
| 108 | HTTP_RETRY_TOTAL = int(os.environ.get("PAPERFLOW_HTTP_RETRIES", "2")) |
| 109 | HTTP_RETRY_BACKOFF = float(os.environ.get("PAPERFLOW_HTTP_BACKOFF", "0.8")) |
| 110 | |
| 111 | |
| 112 | def _normalize_response_language(value: Any = None) -> str: |
| 113 | raw = str(value or "").strip().lower().replace("_", "-") |
| 114 | return "en" if raw.startswith("en") or raw == "english" else "zh" |
| 115 |
no outgoing calls
no test coverage detected