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

Class FakeLLM

tests/test_desktop_gui.py:936–946  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

934 monkeypatch.setattr(agents.wiki_db, "get_citations_for_nodes", lambda *_args, **_kwargs: {})
935
936 class FakeLLM:
937 name = "fake"
938 model = "fake-model"
939
940 def generate(self, *_args, **_kwargs):
941 class Response:
942 text = "这篇论文从事实性角度分析检索增强。[1]"
943 prompt_tokens = 0
944 completion_tokens = 0
945
946 return Response()
947
948 monkeypatch.setattr(agents.wiki_answer, "build_llm_provider", lambda: FakeLLM())
949

Calls

no outgoing calls