Repository navigation
v2.0.0
What's New
OpenAI Responses API Support
eiroute now proxies POST /v1/responses requests to your backend. This endpoint is used by newer OpenAI API clients and supports advanced features like:
- Multi-turn conversations with
previous_response_id - Enhanced tool calling capabilities
- Structured output with JSON schema
The route follows the same pattern as existing /v1/chat/completions and /v1/completions endpoints, including automatic backend selection, streaming support, semaphore-based rate limiting, and Request ID propagation.
Changes
- Added
POST /v1/responsesroute incmd/eiroute/main.go - Added
TestProxy_ResponsesRoutetest ininternal/router/router_test.go
Requirements
- Backend must support the Responses API (e.g., sglang)
- No configuration changes required - works with existing model definitions