Skip to content

Make session collection HTTP handling explicit and safe#66

Open
odp wants to merge 11 commits into
prodfrom
better-oai-ep-tracer
Open

Make session collection HTTP handling explicit and safe#66
odp wants to merge 11 commits into
prodfrom
better-oai-ep-tracer

Conversation

@odp

@odp odp commented Jul 2, 2026

Copy link
Copy Markdown

Changes made, sorted by importance:

  1. Added Ray actor-based session servers, with multi-backend dispatch and clean shutdown.

  2. Removed unnecessary response decoding/tokenization from sample construction and truncation; sample.response is now "" and sample.metadata["response_decoded"] = False.

  3. Updated sample merging to respect metadata["response_decoded"], avoiding decode unless responses were already decoded.

  4. Made session HTTP client more robust with httpx, explicit timeouts, retries, backoff, better logging, and bounded collect concurrency.

  5. Compact session records returned by the session server to only include fields needed by the sample builder.

  6. Moved sample construction and merge work into asyncio.to_thread, and increased the async thread pool size.

@odp odp requested a review from a team July 2, 2026 18:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant