Portkey experiment#11
Open
suraj9741 wants to merge 2 commits into
Open
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
PR Overview
Portkey AI Gateway POC — Cloud & Local self-hosted evaluation
What this adds
A fully runnable evaluation of Portkey AI Gateway across two deployment tracks:
Track 1 — Cloud (
portkey-poc/)cloud_demo.py— automated all-in-one runner (8/8 pass)run_all.py— supports--only/--skipflags@test/invalid-trigger-fallback+400inon_status_codes; proven via timing (214ms vs 7209ms) andx-portkey-retry-attempt-count: -1headerclient.guardrails.create()→ slug →before_request_hooks; not custom Python regexcache.mode: simplewith real HIT/MISS verification viaresp.get_headers()['cache-status']; 18x speedup on hitsTrack 2 — Local self-hosted (
portkey-local-poc/)portkeyai/gateway:lateston port 8787)local_demo.py+team_demo.py— automated and presentation-mode runnersdocker-compose.yml: emptyvolumes:block caused startup crash;LOG_STORE=localsilently ignored in v1.15.2+ — removed dead env vars and./logsmounthttp://localhost:8787/public/Docs
EXPERIMENT_README.md— OSS vs Cloud feature comparison, self-hosted limitations clearly markedportkey-poc/README.md— 8 demos, retry proof, native guardrail API, cache header verificationportkey-local-poc/README.md— 6 demos, Docker setup, UI-based observabilityexperiments/portkey/README.md— updated Dashboard and Usage sectionsKey findings