Skip to content

Clean up gateway and tooling readability - #8

Merged
iPrakharV merged 2 commits into
mainfrom
readability-cleanup
May 11, 2026
Merged

iPrakharV merged 2 commits into
mainfrom
readability-cleanup

Conversation

@iPrakharV

Copy link
Copy Markdown
Owner

What changed

  • split gateway endpoint logic into small helpers for worker lookup, worker config reads, control calls, cached responses, and prediction calls
  • cleaned up the benchmark runner by separating service launch, request sending, latency summaries, and scenario execution
  • cleaned up the model evaluation script with typed challenge examples, separate confusion matrix logic, label metrics, and markdown rendering

Why

The project had useful behavior, but a few files were starting to read like long scripts. This keeps the same behavior while making the code easier to scan in a portfolio review.

Validation

  • python -m pytest -q
  • python -m py_compile on all Python files
  • git diff --check
  • python bench/run_scenarios.py with output written to /tmp

@iPrakharV
iPrakharV merged commit 70758a7 into main May 11, 2026
2 checks passed
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