@shun-js/aibaiban-server 1.1.6 → 1.1.7

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": "1.1.6",
3
+ "version": "1.1.7",
4
4
  "description": "aibaiban.com server",
5
5
  "keywords": [
6
6
  "ai aibaiban"
@@ -37,7 +37,7 @@
37
37
  "qiao-z-nuser": "^6.0.0",
38
38
  "qiao-z-service": "^6.0.0",
39
39
  "qiao-z-sms": "^6.0.0",
40
- "viho-llm": "^1.0.6",
40
+ "viho-llm": "^1.0.7",
41
41
  "zod": "^4.3.6",
42
42
  "zod-to-json-schema": "^3.25.1"
43
43
  },
@@ -45,5 +45,5 @@
45
45
  "access": "public",
46
46
  "registry": "https://registry.npmjs.org/"
47
47
  },
48
- "gitHead": "1c7a63459b85ce49c258cf2d424681867aadf4a8"
48
+ "gitHead": "e3aa7590c712845b352ac56628ffb9d624a2c1cf"
49
49
  }
@@ -10,6 +10,7 @@ const llmConfig = global.QZ_CONFIG.llm;
10
10
  const finalLLMConfig = llmConfig[llmConfig.default];
11
11
  const llm = OpenAIAPI(finalLLMConfig);
12
12
  const modelName = finalLLMConfig.modelName;
13
+ const thinking = finalLLMConfig.thinking;
13
14
 
14
15
  /**
15
16
  * drawAgent - 流式 Agent 接口
@@ -53,6 +54,7 @@ exports.drawAgent = async (req, res) => {
53
54
  llm,
54
55
  modelName,
55
56
  messages: [{ role: 'user', content: prompts.ROUTER_PROMPT.replace('{input}', input) }],
57
+ thinking: thinking,
56
58
  isJson: true,
57
59
  },
58
60
  agentEndCallback: (result) => {
@@ -80,6 +82,7 @@ exports.drawAgent = async (req, res) => {
80
82
  llm,
81
83
  modelName,
82
84
  messages: [{ role: 'user', content: prompts.CLASSIFY_PROMPT.replace('{input}', input) }],
85
+ thinking: thinking,
83
86
  isJson: true,
84
87
  },
85
88
  agentEndCallback: (result) => {
@@ -108,6 +111,7 @@ exports.drawAgent = async (req, res) => {
108
111
  },
109
112
  ];
110
113
  },
114
+ thinking: thinking,
111
115
  },
112
116
  agentEndCallback: (result) => {
113
117
  elaboration = result;
@@ -138,6 +142,7 @@ exports.drawAgent = async (req, res) => {
138
142
  },
139
143
  ];
140
144
  },
145
+ thinking: thinking,
141
146
  },
142
147
  agentEndCallback: (result) => {
143
148
  const mermaidCode = result;