@shun-js/aibaiban-server 0.8.10 → 0.9.1

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@shun-js/aibaiban-server",
3
- "version": "0.8.10",
3
+ "version": "0.9.1",
4
4
  "description": "aibaiban.com server",
5
5
  "keywords": [
6
6
  "ai aibaiban"
@@ -44,5 +44,5 @@
44
44
  "access": "public",
45
45
  "registry": "https://registry.npmjs.org/"
46
46
  },
47
- "gitHead": "bc2bf4e958b64ce8d03ded62fda63e464561e6db"
47
+ "gitHead": "ca287fd7274efdee79021fc6ae8926c2944446bc"
48
48
  }
@@ -4,13 +4,9 @@ const { OpenAIAPI } = require('viho-llm');
4
4
  /**
5
5
  * LLM 配置 - 使用 moonshot 平台的 kimi-k2.5
6
6
  */
7
- const llmConfig = {
8
- apiKey: global.QZ_CONFIG.kimi.apiKey,
9
- baseURL: global.QZ_CONFIG.kimi.baseURL,
10
- modelName: global.QZ_CONFIG.kimi.modelName,
11
- };
12
-
13
- const llm = OpenAIAPI(llmConfig);
7
+ const llmConfig = global.QZ_CONFIG.llm;
8
+ const finalLLMConfig = llmConfig[llmConfig.default];
9
+ const llm = OpenAIAPI(finalLLMConfig);
14
10
 
15
11
  /**
16
12
  * 从文本中提取 JSON
package/views/index.html CHANGED
@@ -107,7 +107,7 @@
107
107
  <script
108
108
  type="module"
109
109
  crossorigin
110
- src="https://static-small.vincentqiao.com/aibaiban/static/index-BjfVIUHI.js"
110
+ src="https://static-small.vincentqiao.com/aibaiban/static/index-DlsFnNe0.js"
111
111
  ></script>
112
112
  <link
113
113
  rel="modulepreload"
@@ -132,7 +132,7 @@
132
132
  <link
133
133
  rel="modulepreload"
134
134
  crossorigin
135
- href="https://static-small.vincentqiao.com/aibaiban/static/chunks/excalidraw-CavkIZBf.js"
135
+ href="https://static-small.vincentqiao.com/aibaiban/static/chunks/excalidraw-W2v_i_jq.js"
136
136
  />
137
137
  <link
138
138
  rel="stylesheet"