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

Function _wiki_scope_hint

deployments/desktop/shared/agents.py:4662–4672  ·  view source on GitHub ↗
(scope: str, response_language: str)

Source from the content-addressed store, hash-verified

4660 "This question does not require the local Wiki. No usable LLM is configured, "
4661 "so the offline desktop app cannot generate a general answer right now. "
4662 "Use @ to select papers or switch to a Wiki scope for local-paper answers."
4663 if language == "en"
4664 else "这个问题不需要调用本地 Wiki。当前未配置可用 LLM,因此离线版无法生成通用回答;如需基于本地论文回答,请用 @ 选择论文或切换到 Wiki 范围。"
4665 )
4666 else:
4667 try:
4668 response = llm.generate(
4669 question,
4670 system=_direct_answer_prompt(language),
4671 temperature=0.0,
4672 max_tokens=_direct_answer_max_tokens(),
4673 )
4674 text = response.text
4675 except Exception as exc:

Callers 2

wiki_askFunction · 0.85
wiki_ask_streamFunction · 0.85

Calls 2

getMethod · 0.80

Tested by

no test coverage detected