Skip to content

Commit

Permalink
Merge pull request #26 from tolerious/feat/add-deepseek-support
Browse files Browse the repository at this point in the history
✨ Add deepseek support.
  • Loading branch information
tolerious authored Feb 15, 2025
2 parents 23071ba + f36dcdb commit ad6b605
Show file tree
Hide file tree
Showing 9 changed files with 346 additions and 13 deletions.
4 changes: 3 additions & 1 deletion .env.production
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
DB_URL=mongodb://127.0.0.1:27017/test
DB_URL=mongodb://127.0.0.1:27017/test
DEEP_SEEK_URL=https://api.deepseek.com
DEEP_SEEK_API_KEY=
1 change: 1 addition & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{
"cSpell.words": [
"deepseek",
"Segs",
"uuidv"
]
Expand Down
2 changes: 2 additions & 0 deletions middleware/auth.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,14 @@ const auth = function (req, res, next) {
if (
// TODO: This array should be a global array or a array in a global file
([
"/deepseek",
"/logic/login",
"/test",
"/grab",
"/user/",
"/youdao/",
"/translation/content",
"/cron"
].indexOf(req.originalUrl) > -1 &&
(req.method === "POST" || req.method === "GET")) ||
rule.test(req.originalUrl) ||
Expand Down
2 changes: 2 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
"cheerio": "1.0.0-rc.12",
"cookie-parser": "~1.4.4",
"cors": "^2.8.5",
"cron": "^3.5.0",
"debug": "~2.6.9",
"dotenv": "^16.4.5",
"express": "~4.16.1",
Expand All @@ -29,6 +30,7 @@
"mongodb": "^5.6.0",
"mongoose": "^7.3.1",
"morgan": "~1.9.1",
"openai": "^4.83.0",
"pm2": "^5.4.2",
"pug": "2.0.0-beta11",
"qrcode": "^1.5.3",
Expand Down
124 changes: 124 additions & 0 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit ad6b605

Please sign in to comment.