Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 9 additions & 9 deletions .env.example
Original file line number Diff line number Diff line change
@@ -1,20 +1,20 @@
# DS2API runtime
# Runtime listen port inside the app/container
# Runtime DS2API
# Cổng nội bộ mà ứng dụng/container lắng nghe
PORT=5001
# Docker Compose host port (compose only; container still listens on PORT)
# Cổng host của Docker Compose (chỉ dành cho compose; container vẫn lắng nghe trên PORT)
DS2API_HOST_PORT=6011
LOG_LEVEL=INFO

# Admin authentication
# Xác thực Admin
DS2API_ADMIN_KEY=change-me

# Config loading (choose one)
# 1) file-based config
# Tải cấu hình (chọn một trong các cách sau)
# 1) Cấu hình dạng file
DS2API_CONFIG_PATH=/app/config.json
# 2) inline JSON or Base64 JSON
# 2) JSON inline hoặc Base64 JSON
# DS2API_CONFIG_JSON=
# 3) legacy compatibility alias
# 3) Alias tương thích phiên bản cũ
# CONFIG_JSON=

# Optional: static admin assets path
# Tuỳ chọn: đường dẫn tài nguyên tĩnh của admin
# DS2API_STATIC_ADMIN_DIR=/app/static/admin
8 changes: 8 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -39,10 +39,13 @@ internal/webui/assets/admin/
# Go compiled binaries
ds2api
ds2api-tests
*.exe

# Environment
.env.local
.env.*.local
.env.*.production
.env.production

# Testing
.coverage
Expand All @@ -64,6 +67,11 @@ CLAUDE.local.md
# Local tool bootstrap cache
.tmp/

# Local helper scripts and accidental nested clones (do not commit upstream)
run.bat
run.sh
/dsapi/

# Chat history
data/
.codex
Expand Down
2 changes: 1 addition & 1 deletion README.MD
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
[![Deploy on Zeabur](https://zeabur.com/button.svg)](https://zeabur.com/templates/L4CFHP)
[![Deploy with Vercel](https://vercel.com/button)](https://vercel.com/new/clone?repository-url=https://github.com/CJackHwang/ds2api)

语言 / Language: [中文](README.MD) | [English](README.en.md)
语言 / Language: [中文](README.MD) | [English](README.en.md) | [Tiếng Việt](README.vi.md)

将 DeepSeek Web 对话能力转换为 OpenAI、Claude 与 Gemini 兼容 API。核心后端以 **Go** 实现,Vercel 流式桥接额外使用少量 Node Runtime,前端为 React WebUI 管理台(源码在 `webui/`,部署时自动构建到 `static/admin`)。

Expand Down
2 changes: 1 addition & 1 deletion README.en.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
[![Deploy on Zeabur](https://zeabur.com/button.svg)](https://zeabur.com/templates/L4CFHP)
[![Deploy with Vercel](https://vercel.com/button)](https://vercel.com/new/clone?repository-url=https://github.com/CJackHwang/ds2api)

Language: [中文](README.MD) | [English](README.en.md)
Language: [中文](README.MD) | [English](README.en.md) | [Tiếng Việt](README.vi.md)

DS2API converts DeepSeek Web chat capability into OpenAI-compatible, Claude-compatible, and Gemini-compatible APIs. The core backend is Go-based, with a small Node Runtime bridge used for Vercel streaming, and the React WebUI admin panel lives in `webui/` (build output auto-generated to `static/admin` during deployment).

Expand Down
420 changes: 420 additions & 0 deletions README.vi.md

Large diffs are not rendered by default.

24 changes: 12 additions & 12 deletions config.example.json
Original file line number Diff line number Diff line change
@@ -1,38 +1,38 @@
{
"_comment": "DS2API 配置文件示例 - 复制为 config.json 使用",
"_doc": "详细文档: https://github.com/CJackHwang/ds2api",
"_comment": "Ví dụ file cấu hình DS2API - sao chép thành config.json để sử dụng",
"_doc": "Tài liệu chi tiết: https://github.com/CJackHwang/ds2api",
"keys": [
"your-api-key-1",
"your-api-key-2"
],
"api_keys": [
{
"key": "your-api-key-1",
"name": "API Key",
"remark": "给 OpenAI 客户端使用"
"name": "API Key chính",
"remark": "Dùng cho client OpenAI"
},
{
"key": "your-api-key-2",
"name": "备用 API Key",
"remark": "压测或临时调试"
"name": "API Key dự phòng",
"remark": "Dùng để stress-test hoặc debug tạm thời"
}
],
"accounts": [
{
"_comment": "邮箱登录方式",
"name": "主账号",
"remark": "优先用于生产流量",
"_comment": "Đăng nhập bằng email",
"name": "Tài khoản chính",
"remark": "Ưu tiên dùng cho traffic production",
"email": "example1@example.com",
"password": "your-password-1"
},
{
"_comment": "邮箱登录方式 - 账号2",
"name": "备用账号",
"_comment": "Đăng nhập bằng email - tài khoản 2",
"name": "Tài khoản dự phòng",
"email": "example2@example.com",
"password": "your-password-2"
},
{
"_comment": "手机号登录方式(中国大陆)",
"_comment": "Đăng nhập bằng số điện thoại (Trung Quốc đại lục)",
"mobile": "12345678901",
"password": "your-password-3"
}
Expand Down
2 changes: 1 addition & 1 deletion docs/DEPLOY.en.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# DS2API Deployment Guide

Language: [中文](DEPLOY.md) | [English](DEPLOY.en.md)
Language: [中文](DEPLOY.md) | [English](DEPLOY.en.md) | [Tiếng Việt](DEPLOY.vi.md)

This guide covers all deployment methods for the current Go-based codebase.

Expand Down
2 changes: 1 addition & 1 deletion docs/DEPLOY.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# DS2API 部署指南

语言 / Language: [中文](DEPLOY.md) | [English](DEPLOY.en.md)
语言 / Language: [中文](DEPLOY.md) | [English](DEPLOY.en.md) | [Tiếng Việt](DEPLOY.vi.md)

本指南基于当前 Go 代码库,详细说明各种部署方式。

Expand Down
Loading
Loading