Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions verifiers/v1/interception/server.py
Original file line number Diff line number Diff line change
Expand Up @@ -242,6 +242,10 @@ async def handle_request(
body = from_json(raw)
except ValueError:
body = json.loads(raw)
# Keep `read()` for aiohttp's size guard, then release its cache and our local
# alias after parsing so the wire body does not survive model inference.
request._read_bytes = None
del raw
logger.debug(
"intercept %s: id=%s stream=%s",
request.path,
Expand Down
Loading