Skip to content

Commit aacb7cd

Browse files
committed
feat: 添加 kimi 模块
1 parent db10fb8 commit aacb7cd

File tree

10 files changed

+250
-141
lines changed

10 files changed

+250
-141
lines changed

.env.example

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@
33
# OpenAi 的api key, 去 https://beta.openai.com/account/api-keys 中生成一个即可
44
OPENAI_API_KEY=''
55

6+
# Kimi 的api key, 去 https://platform.moonshot.cn/console/api-keys
7+
KIMI_API_KEY=''
8+
69
# 第三方的暂时没用了,请使用上方的OPENAI_API_KEY
710
# # =========================================
811
# # ChatGPT的sessionToken, 从cookie取值

.vscode/settings.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"cSpell.words": [
3+
"kimi"
4+
]
5+
}

package.json

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,15 @@
66
"type": "module",
77
"scripts": {
88
"dev": "node ./index.js",
9-
"test": "node ./src/wechaty/testMessage.js"
9+
"test": "node ./src/wechaty/testMessage.js",
10+
"test-openai": "node ./src/openai/__test__.js",
11+
"test-kimi": "node ./src/kimi/__test__.js"
1012
},
1113
"author": "rongding",
1214
"license": "ISC",
1315
"dependencies": {
14-
"chatgpt": "^2.3.0",
16+
"axios": "^1.6.8",
17+
"chatgpt": "^2.5.2",
1518
"dotenv": "^16.0.3",
1619
"openai": "^3.1.0",
1720
"p-timeout": "^6.0.0",

0 commit comments

Comments
 (0)