Skip to content

Commit ad6b605

Browse files
authored
Merge pull request #26 from tolerious/feat/add-deepseek-support
✨ Add deepseek support.
2 parents 23071ba + f36dcdb commit ad6b605

9 files changed

Lines changed: 346 additions & 13 deletions

File tree

.env.production

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,3 @@
1-
DB_URL=mongodb://127.0.0.1:27017/test
1+
DB_URL=mongodb://127.0.0.1:27017/test
2+
DEEP_SEEK_URL=https://api.deepseek.com
3+
DEEP_SEEK_API_KEY=

.vscode/settings.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
{
22
"cSpell.words": [
3+
"deepseek",
34
"Segs",
45
"uuidv"
56
]

middleware/auth.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,14 @@ const auth = function (req, res, next) {
1111
if (
1212
// TODO: This array should be a global array or a array in a global file
1313
([
14+
"/deepseek",
1415
"/logic/login",
1516
"/test",
1617
"/grab",
1718
"/user/",
1819
"/youdao/",
1920
"/translation/content",
21+
"/cron"
2022
].indexOf(req.originalUrl) > -1 &&
2123
(req.method === "POST" || req.method === "GET")) ||
2224
rule.test(req.originalUrl) ||

package.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
"cheerio": "1.0.0-rc.12",
2020
"cookie-parser": "~1.4.4",
2121
"cors": "^2.8.5",
22+
"cron": "^3.5.0",
2223
"debug": "~2.6.9",
2324
"dotenv": "^16.4.5",
2425
"express": "~4.16.1",
@@ -29,6 +30,7 @@
2930
"mongodb": "^5.6.0",
3031
"mongoose": "^7.3.1",
3132
"morgan": "~1.9.1",
33+
"openai": "^4.83.0",
3234
"pm2": "^5.4.2",
3335
"pug": "2.0.0-beta11",
3436
"qrcode": "^1.5.3",

pnpm-lock.yaml

Lines changed: 124 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)