feat: Add DeepSeek web (cookie-based) account support#3334
Conversation
Add support for DeepSeek accounts authenticated via browser cookies and tokens, enabling free API access through the DeepSeek web interface. Backend changes: - Add deepseek package: PoW solver (Keccak), HTTP client, SSE stream converter - Add gateway handler routing DeepSeek requests through OpenAI-compatible API - Register DeepSeek platform in domain constants and validation whitelists - Support account creation with Cookie/Token authentication - Route /v1/chat/completions to DeepSeek handler when account is DeepSeek type Frontend changes: - Add DeepSeek Cookie/Token input fields in CreateAccountModal - Hide generic API Key input for DeepSeek accounts in EditAccountModal - Add DeepSeek platform badge, colors, and i18n entries - Support DeepSeek in group creation platform selector Tested with deepseek-chat, deepseek-v4-pro, deepseek-coder, deepseek-reasoner, deepseek-r1 in both stream and non-stream modes. Signed-off-by: hanzhijian <hanzhijian@zepp.com>
|
All contributors have signed the CLA. ✅ |
I have read the CLA Document and I hereby sign the CLA |
|
recheck |
|
I have read the CLA Document and I hereby sign the CLA |
Add search_enabled: true to the DeepSeek completion payload so that the model can perform web searches for real-time information (weather, news, etc.) just like the DeepSeek web interface. Signed-off-by: hanzhijian <hanzhijian@zepp.com>
78c64bd to
bb19fb6
Compare
Update: DeepSeek Web Search SupportAdded Before: "我没有联网获取实时数据的能力" |
|
不考虑合并。 |
feat: Add DeepSeek web (cookie-based) account support
Add support for DeepSeek accounts authenticated via browser cookies and tokens, enabling free API access through the DeepSeek web interface.
What's New
/v1/chat/completionsendpointdeepseek-chat,deepseek-v4-pro,deepseek-coder,deepseek-reasoner,deepseek-r1Architecture
Files Changed
Testing
All models verified through Sub2API proxy in both stream and non-stream modes:
deepseek-chatdeepseek-v4-prodeepseek-coderdeepseek-reasonerdeepseek-r1How to Use
chat.deepseek.comrequest headers)deepseek-chat)/v1/chat/completionsendpoint with the DeepSeek account API keyNotes