ds2api
Deepseek to API: A lightweight, high-performance full-stack middleware converting client protocols to universal APIs. Supports multi-account rotation, compiled binaries, Vercel Serverless, and Docker. Compatible with Google, Claude, and OpenAI API formats.
Discover how the DS2API WebUI admin console communicates with its Go backend through REST endpoints. Learn about Vite proxy and static file serving for seamless interaction.
DS2API Deployment Methods: 7 Supported Ways to Run Your API ServerDiscover 7 DS2API deployment methods including standalone binaries Docker containers serverless options like Vercel and Zeabur plus systemd services. Easily run your API server.
How DS2API Handles Request Abortion and Uniform Error ContractsDiscover how DS2API handles request abortion with its lease-based lifecycle and enforces uniform error contracts using a four-field JSON schema for OpenAI and Gemini endpoints.
DS2API Health Check Endpoints: Liveness and Readiness Probes ExplainedDiscover DS2API health check endpoints. Learn how /healthz and /readyz probes ensure your service is operational with JSON status payloads.
How DS2API Handles Gemini API Compatibility with Function DeclarationsDS2API ensures Gemini API compatibility with function declarations by normalizing them into OpenAI tools. Learn how this process preserves schema integrity for seamless integration.
DS2API /v1/chat/completions vs /v1/responses: Key Differences ExplainedUnderstand the key differences between DS2API /v1/chat/completions and /v1/responses. Learn how /v1/responses offers structured payloads and retrieval API for advanced chat applications.
How DS2API Uses the X-Ds2-Target-Account Header for Account PinningLearn how the DS2API X-Ds2-Target-Account header lets clients select specific managed accounts, bypassing default assignments for precise control. Understand account pinning.
How to Use the Dev Capture Feature in DS2API for DebuggingLearn to use DS2API dev capture for debugging. Enable capture, wrap responses, and inspect requests/responses via the admin endpoint for efficient troubleshooting.
DS2API CORS Configuration: Custom Cross-Origin Middleware Implementation in Go-ChiExplore DS2API CORS configuration in Go-Chi. Discover custom middleware that echoes Origin, validates headers, and secures internal tokens for enhanced cross-origin control.
How DS2API Implements Account Pool Rotation with Token RefreshLearn how DS2API implements account pool rotation with a round-robin queue and automatically refreshes tokens using time-based checks. Discover efficient token management for your API.
What Is PromptCompat in DS2API and How Does It Work?DS2API PromptCompat converts OpenAI chat requests to plain text prompts for LLMs. Learn how it normalizes messages injects tools and formats for any backend.
How DS2API Handles Server-Side Chat History Storage: Implementation GuideLearn how DS2API handles server-side chat history storage with atomic JSON writes, configurable retention, and RESTful admin endpoints for resilient, real-time data management.
Have a question about this repo?
These articles cover the highlights, but your codebase questions are specific. Give your agent direct access to the source. Share this with your agent to get started:
curl -s "https://instagit.com/install.md" Maintain an open-source project? Get it listed too →