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

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

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