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

Function fake_local

tests/test_llm_parser.py:207–217  ·  view source on GitHub ↗
(system_prompt, user_text, max_new_tokens=512, **kwargs)

Source from the content-addressed store, hash-verified

205 captured = {}
206
207 def fake_local(system_prompt, user_text, max_new_tokens=512, **kwargs):
208 captured["system_prompt"] = system_prompt
209 captured["user_text"] = user_text
210 captured["max_new_tokens"] = max_new_tokens
211 return {
212 "action": "adjust_interest",
213 "direction": "decrease",
214 "topics": ["GUI Agent"],
215 "confidence": 0.93,
216 "reasoning": "matched explicit negation",
217 }
218
219 monkeypatch.setattr(llm_parser, "_generate_json_with_local_llm", fake_local)
220 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