MCPcopy Create free account
hub / github.com/VectifyAI/OpenKB / test_llm_call_forwards_configured_timeout

Function test_llm_call_forwards_configured_timeout

tests/test_llm_timeout.py:28–34  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

26
27
28def test_llm_call_forwards_configured_timeout():
29 set_timeout(1200.0)
30 with patch(
31 "openkb.agent.compiler.litellm.completion", return_value=_fake_response()
32 ) as completion:
33 _llm_call("gpt-4o", [{"role": "user", "content": "hi"}], "step")
34 assert completion.call_args.kwargs["timeout"] == 1200.0
35
36
37def test_llm_call_omits_timeout_when_unset():

Callers

nothing calls this directly

Calls 3

set_timeoutFunction · 0.90
_llm_callFunction · 0.90
_fake_responseFunction · 0.70

Tested by

no test coverage detected