Skip to content

The agent that grows with you

docs(relay): clarify timeout payload isolation

Bryan Bednarskia2d0ba3d8125
diff --git a/agent/relay_llm.py b/agent/relay_llm.py
index 38045586724..ea969da43f1 100644
--- a/agent/relay_llm.py
+++ b/agent/relay_llm.py
@@ -1103,9 +1103,9 @@ def _relay_request_body(
body = _jsonable(request)
if not isinstance(body, dict):
return {}
- # ``timeout`` configures the provider SDK client; it is not part of any
- # supported provider wire protocol. Keep it on the original callback
- # request, but never expose it to Relay intercepts or routed transports.
+ # ``timeout`` configures the provider SDK client, not a provider wire
+ # protocol. Preserve it for the original callback request, but never pass
+ # it to Relay intercepts or routed transports.
body.pop("timeout", None)
# The Responses SDK accepts ``tools=None`` as "no tools", while Relay's
# typed Responses codec correctly expects either an array or an absent