-
Notifications
You must be signed in to change notification settings - Fork 75
Add LiteLLM passthrough adapter for proxy #199
Copy link
Copy link
Open
Description
Allow Meridian proxy to detect and handle LiteLLM-style requests via x-litellm-* headers.
When LiteLLM is configured as a proxy provider, it sends x-litellm-* headers with requests. This change adds detection for these headers and routes such requests to a passthrough adapter that forwards them directly to Claude Code SDK without session management or tool blocking.
- Added
hasLiteLLMHeaders()detection indetect.ts - Created
passthroughAdapterinadapters/passthrough.ts - Added
DEBUG_PROXYenv var for cache hit/miss visibility incache.ts - Added unit tests for passthrough detection
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels