(system_prompt, user_text, max_tokens=500, **kwargs)
| 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) |
nothing calls this directly
no outgoing calls
no test coverage detected