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

Function _response_language

deployments/desktop/server.py:79–81  ·  view source on GitHub ↗
(payload: Dict[str, Any])

Source from the content-addressed store, hash-verified

77 return user_id
78
79
80def _response_language(payload: Dict[str, Any]) -> str:
81 raw = str(payload.get("response_language") or payload.get("language") or "").strip().lower()
82 return "en" if raw.startswith("en") else "zh"
83
84

Callers 7

_api_github_syncFunction · 0.85
_api_readFunction · 0.85
_api_read_arxivFunction · 0.85
_api_read_pdfFunction · 0.85
_api_submitFunction · 0.85
_api_wiki_askFunction · 0.85

Calls 1

getMethod · 0.80

Tested by

no test coverage detected