Skip to main content

Module passthrough

Module passthrough 

Source
Expand description

Catch-all passthrough handler.

Forwards requests to the upstream provider detected from the request path. Used for routes not explicitly matched by the provider-specific handlers (e.g., OpenAI batch endpoints, Anthropic beta paths, GET /v1/models, etc.).

Functions§

passthrough_handler
Catch-all handler — detect provider from path and forward unchanged. Handles all HTTP methods (GET, POST, PUT, PATCH, DELETE).