chaimi-bookkeeping-mcp 3.0.0 → 3.0.2
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 +1 -1
- package/server.js +1 -1
package/package.json
CHANGED
package/server.js
CHANGED
|
@@ -450,7 +450,7 @@ server.setRequestHandler(CallToolRequestSchema, async (request) => {
|
|
|
450
450
|
instructions: '请将 systemPrompt 作为 system message,把小票图片作为 user message,调用你的大模型进行解析。解析完成后,调用 save_receipt 工具保存结果。'
|
|
451
451
|
}
|
|
452
452
|
};
|
|
453
|
-
userMessage = `✅ 获取解析Prompt成功\n\n版本: ${promptResult.data.version}\n\n
|
|
453
|
+
userMessage = `✅ 获取解析Prompt成功\n\n版本: ${promptResult.data.version}\n\n## System Prompt\n\n请将以下内容作为 system message 发送给大模型:\n\n\`\`\`\n${promptResult.data.systemPrompt}\n\`\`\`\n\n## 使用说明\n\n1. 将上面的 System Prompt 作为 system message\n2. 将小票图片作为 user message\n3. 调用大模型解析\n4. 解析完成后,调用 save_receipt 工具保存结果\n\n## 示例\n\n${JSON.stringify(promptResult.data.examples, null, 2)}`;
|
|
454
454
|
} else {
|
|
455
455
|
result = { success: false, error: promptResult.error };
|
|
456
456
|
userMessage = `❌ 获取Prompt失败:${promptResult.error}`;
|