MCPcopy Create free account
hub / github.com/OpenRaiser/PaperFlow / _normalize_response_language

Function _normalize_response_language

agents/reading-agent/main.py:110–112  ·  view source on GitHub ↗
(value: Any = None)

Source from the content-addressed store, hash-verified

108HTTP_RETRY_TOTAL = int(os.environ.get("PAPERFLOW_HTTP_RETRIES", "2"))
109HTTP_RETRY_BACKOFF = float(os.environ.get("PAPERFLOW_HTTP_BACKOFF", "0.8"))
110
111
112def _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

Calls

no outgoing calls

Tested by

no test coverage detected