Update cwb_apiService.js

This commit is contained in:
2025-10-24 19:57:58 +08:00
committed by GitHub
parent 960dd658df
commit 6278c5e69a

View File

@@ -300,6 +300,10 @@ export async function callCwbAPI(systemPrompt, userPromptContent, options = {})
});
console.log("【消息内容】:", messages);
// 格式化并打印完整的提示词
const fullPromptText = messages.map(msg => `[${msg.role}]\n${msg.content}`).join('\n\n');
console.log("【完整提示词】:\n", fullPromptText);
try {
let responseContent;