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

Function _normalize_response_language

deployments/desktop/shared/agents.py:56–58  ·  view source on GitHub ↗
(value: Any = None)

Source from the content-addressed store, hash-verified

54
55
56def _normalize_response_language(value: Any = None) -> str:
57 raw = str(value or "").strip().lower().replace("_", "-")
58 return "en" if raw.startswith("en") or raw in {"english"} else "zh"
59
60
61EDITABLE_ENV_KEYS = [

Callers 15

_notes_llm_sync_reviewFunction · 0.70
create_reading_reportsFunction · 0.70
read_arxivFunction · 0.70
read_local_pdfFunction · 0.70
_reading_language_noticeFunction · 0.70
_direct_answer_promptFunction · 0.70
_direct_answerFunction · 0.70
_apply_chat_metadataFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected