Discover and explore top open-source AI tools and projects—updated daily.
liuzhengmingLLM API protocol adapter
Top 94.3% on SourcePulse
This project offers a protocol translation proxy that enables clients designed for OpenAI's API (specifically the Codex CLI) to seamlessly interact with DeepSeek models. It addresses the incompatibility between OpenAI's Responses API protocol and DeepSeek's Chat Completions API by running a local agent that translates requests and responses, allowing users to leverage DeepSeek's capabilities with existing OpenAI-compatible tooling.
How It Works
The system operates as a local HTTP server that intercepts API calls. It translates input requests from the OpenAI Responses API format to DeepSeek's Chat Completions API format using lib/translate.js. For streaming responses, lib/sse.js handles the translation from DeepSeek's output back to SSE events. A key feature is lib/recover.js, which implements automatic memory and re-injection of reasoning_content across conversational turns to maintain context.
Quick Start & Requirements
npm install in the project directory.env_example to .env and set your DeepSeek API key (api_key=sk-your-deepseek-api-key).npm start. Clients like Codex CLI will then automatically route through this proxy.Highlighted Details
temperature, top_p, max_output_tokens, tools, and tool_choice.Maintenance & Community
No specific details regarding maintainers, community channels (like Discord/Slack), or roadmaps are provided in the README.
Licensing & Compatibility
Limitations & Caveats
The proxy explicitly skips translation for input_file and input_audio data types. The mechanism for reasoning_content re-injection relies on automatic memory, which may have edge cases or limitations in complex conversational flows.
2 weeks ago
Inactive