@ganziliang/kb 0.1.5 → 0.1.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +9 -8
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -22,20 +22,18 @@ npm install -g @ganziliang/kb
|
|
|
22
22
|
kb
|
|
23
23
|
```
|
|
24
24
|
|
|
25
|
-
|
|
25
|
+
`@ganziliang/kb` 已经声明依赖 `@ganziliang/kb-model-setup`。通过 npm 安装 `@ganziliang/kb` 时,npm 会自动安装该依赖,正常情况下不需要单独安装。
|
|
26
|
+
|
|
27
|
+
如果你需要单独安装或更新模型配置模块,可以执行:
|
|
26
28
|
|
|
27
29
|
```bash
|
|
28
|
-
|
|
29
|
-
npm install
|
|
30
|
-
npm run build
|
|
31
|
-
node dist/entry.js
|
|
30
|
+
npm install -g @ganziliang/kb-model-setup
|
|
32
31
|
```
|
|
33
32
|
|
|
34
|
-
|
|
33
|
+
注意:`kb-model-setup` 是模型配置模块,不是启动 `kb` 的主命令。日常使用只需要运行:
|
|
35
34
|
|
|
36
35
|
```bash
|
|
37
|
-
|
|
38
|
-
npm run build
|
|
36
|
+
kb
|
|
39
37
|
```
|
|
40
38
|
|
|
41
39
|
## 首次启动和模型配置
|
|
@@ -51,6 +49,8 @@ kb
|
|
|
51
49
|
1. `api-stats` 页面地址或 `apiId`
|
|
52
50
|
2. API Key
|
|
53
51
|
|
|
52
|
+
`kb` 使用依赖包 `@ganziliang/kb-model-setup` 完成模型配置。该模块会查询智真 LLM Gateway 中当前账号可用的模型,并保存所选模型配置。
|
|
53
|
+
|
|
54
54
|
当前默认使用智真 LLM Gateway:
|
|
55
55
|
|
|
56
56
|
```text
|
|
@@ -75,6 +75,7 @@ Windows 通常对应:
|
|
|
75
75
|
C:\Users\<用户名>\.config\kb\config.json
|
|
76
76
|
```
|
|
77
77
|
|
|
78
|
+
|
|
78
79
|
也可以通过环境变量跳过首次交互配置:
|
|
79
80
|
|
|
80
81
|
```bash
|