Commit Graph

46 Commits

Author SHA1 Message Date
CJACK
db28b4e93e fix: simplify vercel.json and add debug logs for static file issues 2026-02-01 21:41:05 +08:00
CJACK
092532c625 feat: Add Vercel static builder and routes to serve admin assets. v1.0.1 2026-02-01 21:24:53 +08:00
CJACK
1a842c28d1 feat: Establish WebUI build process, update frontend assets, and add CI workflow. 2026-02-01 21:17:19 +08:00
CJACK.
ce0538fcd9 Merge pull request #4 from ronghuaxueleng/main
feat(webui): 添加 API 密钥自动生成和复制功能
2026-02-01 21:07:20 +08:00
qiangcao
eef4ec4a65 Merge branch 'CJackHwang:main' into main 2026-02-01 21:01:28 +08:00
CJACK
951c47f8c5 docs: Update copyright year to 2026 and generalize a feature description. 2026-02-01 20:41:46 +08:00
root
db80aebadc feat(webui): 添加 API 密钥自动生成和复制功能
- 添加密钥弹窗增加「生成」按钮,自动生成 sk-xxx 格式随机密钥
- 密钥列表添加复制按钮,点击复制完整密钥到剪贴板
- 复制成功显示内联 toast 提示
2026-02-01 20:32:59 +08:00
CJACK
21f9fe198a docs: Update configuration examples, API documentation, and add a deployment guide. v1.0.0 2026-02-01 20:09:07 +08:00
CJACK
74800184b1 fix: Rebuild WebUI with correct base path /admin/ 2026-02-01 19:48:27 +08:00
CJACK
3b1eac7833 feat: Implement a new, modern landing page with dynamic styling and feature highlights. 2026-02-01 19:43:40 +08:00
CJACK
2dfe6f1d90 1 2026-02-01 18:15:40 +08:00
CJACK
6e4bbe8f1e feat: Add new static admin UI, including its assets and Vercel deployment configuration. 2026-02-01 18:09:32 +08:00
CJACK
fe21523816 chore: Update Vercel configuration to use installCommand for Python dependencies and remove static admin build. 2026-02-01 18:01:26 +08:00
CJACK
5209deef68 feat: Add comprehensive meta tags and a custom favicon to the web UI, and embed a new styled welcome page directly in home.py. 2026-02-01 16:50:36 +08:00
CJACK
b17e492ab8 feat: Integrate and serve the WebUI, including Vercel build configuration and Python routes for static files. 2026-02-01 16:43:52 +08:00
CJACK
9956770cb0 1 2026-02-01 16:08:56 +08:00
CJACK
dbae110d2b feat: Implement OpenAI-compatible tool calling by injecting tool prompts and parsing tool calls from model responses. 2026-02-01 16:05:10 +08:00
CJACK
1cf52502bb refactor: Consolidate SSE and stream parsing logic into sse_parser.py, remove stream_parser.py, and update WebUI panel text. 2026-02-01 15:37:01 +08:00
CJACK
e990517970 refactor: Extract DeepSeek SSE parsing logic to sse_parser module and centralize stream constants. 2026-02-01 15:24:36 +08:00
CJACK
2295007438 refactor: centralize and enhance DeepSeek SSE chunk parsing and content type determination. 2026-02-01 15:14:05 +08:00
CJACK
0dc83912bc feat: Localize UI strings to Chinese and add new API documentation. 2026-02-01 07:09:07 +08:00
CJACK
ef11d9cf13 feat: Implement a modern flat theme with updated UI components and styling. 2026-02-01 06:14:49 +08:00
CJACK
842a942a55 feat: implement responsive collapsible configuration panel in API Tester and refine account manager component styling. 2026-02-01 05:44:55 +08:00
CJACK
880ab34739 feat: Translate UI texts and messages to Chinese across various components. 2026-02-01 05:37:39 +08:00
CJACK
1f6043ff70 refactor: migrate UI to Tailwind CSS for a modernized design system. 2026-02-01 05:33:50 +08:00
CJACK
1d1361616b 1 2026-02-01 04:57:55 +08:00
CJACK
977aa22e14 feat: Refactor stream parsing to accurately distinguish thinking and response content based on DeepSeek stream formats and add comprehensive unit tests for various chunk types. 2026-02-01 04:57:14 +08:00
CJACK
fc2175474b feat: Implement DeepSeek V3 streaming response parsing to differentiate thinking and text content, and update Safari impersonation. 2026-02-01 04:25:24 +08:00
CJACK
70cd51309f feat: Implement admin routes for DeepSeek account validation and API testing, refactoring admin functionality into a package. 2026-02-01 04:02:47 +08:00
CJACK
31ca94204e feat: Enhance test_account_api to optionally send actual messages and parse streaming AI responses, including PoW challenge/answer, or only test session creation. 2026-02-01 03:58:46 +08:00
CJACK
b90901d5a0 feat: add stream parsing for DeepSeek SSE responses, centralize model management, and refactor tool call handling. 2026-02-01 03:53:01 +08:00
CJACK
4193336dd8 feat: Implement user authentication for the admin web UI, including login, session management, and securing API calls. 2026-02-01 03:40:25 +08:00
CJACK
23bd4970d9 feat: Add token preview and batch progress to admin account management, and expand API tests for admin endpoints. 2026-02-01 03:31:01 +08:00
CJACK
a6d89876ba feat: Enhance API testing to allow sending actual chat messages to specific accounts and display AI replies. 2026-02-01 03:19:25 +08:00
CJACK
5ac472626e feat: Implement DeepSeek account validation, testing, and queue status monitoring with corresponding admin API endpoints. 2026-02-01 03:10:26 +08:00
CJACK
bc260899c1 feat: Initialize project with FastAPI backend, React web UI, Vercel sync, and API integrations. 2026-02-01 02:17:01 +08:00
CJACK.
fc7de77151 Merge pull request #3 from CJackHwang/revert-2-cto-task-app-py-1985-ds2api-app-py-fastapi-100-config-py-50-models-sc
Revert "模块化重构 ds2api:拆分 app.py 为多模块并引入 PoW 缓存与连接复用"
2026-01-25 03:38:18 +08:00
CJACK.
e3dfd0e551 Revert "模块化重构 ds2api:拆分 app.py 为多模块并引入 PoW 缓存与连接复用" 2026-01-25 03:37:52 +08:00
CJACK.
9f51d526fd Merge pull request #2 from CJackHwang/cto-task-app-py-1985-ds2api-app-py-fastapi-100-config-py-50-models-sc
模块化重构 ds2api:拆分 app.py 为多模块并引入 PoW 缓存与连接复用
2026-01-25 03:05:58 +08:00
cto-new[bot]
8d84f556fe refactor(ds2api): modularize app into a package structure and extract concerns into core/services/utils/models; drop heavy tokenizer usage, add scaffolding for PoW caching and async solving, and enable HTTP connection pooling
This change reorganizes the codebase for better maintainability and performance while preserving API surface.
- Create ds2api package with modules: core, services, utils, models
- Migrate config, logging, auth, DeepSeek, PoW, and message processing into dedicated modules
- Introduce PoW caching (60s TTL) and async/parallel support (scalability for multiple requests)
- Replace direct curl calls with a pool-enabled HTTP client setup and WASM-based PoW engine
- Add in-memory token/account management scaffolding and improved token estimation
- Optimize streaming paths and prepare for better backpressure and concurrency
- Remove transformers/tokenizer usage and keep a simple token length estimator

Non-breaking migration: keep API endpoints intact; new structure under ds2api is transparent to clients
2026-01-24 17:17:59 +00:00
CJACK.
266c050faa Delete CHANGELOG.md 2026-01-24 03:09:11 +08:00
CJACK.
181d7f93c6 Merge pull request #1 from CJackHwang/cto-task-1-vercel-docker-docker-compose-2-bug3-readme-vercel-dockerfi
Refactor: unify deployment to Vercel; remove Docker/local deployment files; fix path/config loading
2026-01-24 02:54:07 +08:00
cto-new[bot]
af9be25f20 refactor(deploy-vercel): streamline deployment to Vercel, remove Docker/local deployment files, and harden path handling 2026-01-23 18:47:39 +00:00
CJACK.
affd9b2da9 Update config.json 2026-01-21 23:53:11 +08:00
CJACK.
2fe86da50b Create config.json 2026-01-21 23:26:34 +08:00
CJackHwang
ea4de62fc3 Initial commit
Created from https://vercel.com/new
2026-01-21 15:14:49 +00:00