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

Method generate

tests/test_desktop_gui.py:940–946  ·  view source on GitHub ↗
(self, *_args, **_kwargs)

Source from the content-addressed store, hash-verified

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

Callers 7

test_providerFunction · 0.45
_notes_llm_sync_reviewFunction · 0.45
_direct_answerFunction · 0.45
answer_questionFunction · 0.45
answer_question_streamFunction · 0.45

Calls 2

ResponseClass · 0.70
FakeResponseClass · 0.70

Tested by

no test coverage detected