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

Method text_generation

tests/test_llm_parser.py:303–308  ·  view source on GitHub ↗
(self, prompt, **kwargs)

Source from the content-addressed store, hash-verified

301 raise RuntimeError("chat endpoint unavailable")
302
303 def text_generation(self, prompt, **kwargs):
304 return (
305 "<think>reasoning</think>\n```json\n"
306 '{"action":"adjust_interest","direction":"decrease","topics":["GUI Agent"],"confidence":0.9}'
307 "\n```"
308 )
309
310 monkeypatch.setattr(llm_parser, "_get_hf_llm_client", lambda: FakeClient())
311

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected