from app.llm import LLMClient def test_llm_client_allows_slow_model_calls(monkeypatch): captured = {} class StubOpenAI: def __init__(self, **kwargs): captured.update(kwargs) monkeypatch.setattr("app.llm.OpenAI", StubOpenAI) LLMClient(base_url="https://llm.example/v1", api_key="test-key", model="slow-model") assert captured["timeout"] == 180.0 assert captured["max_retries"] == 0