优化了第二次对用户问题的提示词

This commit is contained in:
xxm
2025-12-05 09:12:44 +00:00
parent 8f52fad41c
commit 9cf81a1200
3 changed files with 13 additions and 7 deletions

View File

@@ -272,7 +272,7 @@
const candRes = await fetch(API_BASE + '/query_from_message', {
method: 'POST',
headers: { 'Content-Type': 'application/json' },
body: JSON.stringify({ session_id: currentSession })
body: JSON.stringify({ session_id: currentSession, message: msg })
});
const candData = await candRes.json();
const payload = candData && candData.data ? candData.data : {};