mirror of
https://github.com/Wx-2025/ST-Amily2-Chat-Optimisation.git
synced 2026-06-09 21:15:49 +00:00
Update cwb_apiService.js
This commit is contained in:
@@ -300,6 +300,10 @@ export async function callCwbAPI(systemPrompt, userPromptContent, options = {})
|
|||||||
});
|
});
|
||||||
console.log("【消息内容】:", messages);
|
console.log("【消息内容】:", messages);
|
||||||
|
|
||||||
|
// 格式化并打印完整的提示词
|
||||||
|
const fullPromptText = messages.map(msg => `[${msg.role}]\n${msg.content}`).join('\n\n');
|
||||||
|
console.log("【完整提示词】:\n", fullPromptText);
|
||||||
|
|
||||||
try {
|
try {
|
||||||
let responseContent;
|
let responseContent;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user