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

Function fake_hf

tests/test_llm_parser.py:261–271  ·  view source on GitHub ↗
(system_prompt, user_text, max_tokens=500, **kwargs)

Source from the content-addressed store, hash-verified

259 captured = {}
260
261 def fake_hf(system_prompt, user_text, max_tokens=500, **kwargs):
262 captured["system_prompt"] = system_prompt
263 captured["user_text"] = user_text
264 captured["max_tokens"] = max_tokens
265 return {
266 "action": "adjust_interest",
267 "direction": "decrease",
268 "topics": ["cold-start"],
269 "confidence": 0.91,
270 "reasoning": "matched explicit negative preference",
271 }
272
273 monkeypatch.setattr(llm_parser, "_generate_json_with_hf_api", fake_hf)
274 monkeypatch.setattr(llm_parser, "_generate_json_with_openai", lambda *args, **kwargs: None)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected