claw-subagent-service 0.0.146 → 0.0.149
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
|
@@ -176,7 +176,12 @@ async function forwardChatMessage(sessionId, content, onDelta, logFn, timeoutMs
|
|
|
176
176
|
|
|
177
177
|
try {
|
|
178
178
|
log('DEBUG', `发送请求到: ${url}`);
|
|
179
|
-
|
|
179
|
+
// 只记录请求体结构,避免 system 提示词过长截断其他字段
|
|
180
|
+
const requestBodyForLog = {
|
|
181
|
+
...requestBody,
|
|
182
|
+
system: `[${requestBody.system.length} 字符的系统提示词]`
|
|
183
|
+
};
|
|
184
|
+
log('DEBUG', `请求体结构: ${JSON.stringify(requestBodyForLog)}`);
|
|
180
185
|
|
|
181
186
|
const response = await axios.post(url, requestBody, {
|
|
182
187
|
headers: { 'Content-Type': 'application/json' },
|