明树Git Lab

Commit 1d6ed170 authored by zfp1's avatar zfp1

update

parent 5aca33fc
...@@ -76,8 +76,8 @@ app.post('/wechat', async (req, res) => { ...@@ -76,8 +76,8 @@ app.post('/wechat', async (req, res) => {
// 5. 调用DeepSeek API // 5. 调用DeepSeek API
const deepseekResponse = await callDeepSeekAPI(message.content); const deepseekResponse = await callDeepSeekAPI(message.content);
if (deepseekResponse.length > 2040) { if (deepseekResponse.length > 100) {
deepseekResponse = deepseekResponse.substring(0, MAX_TEXT_LENGTH) + '... (Answer truncated)'; deepseekResponse = deepseekResponse.substring(0, 100) + '... (Answer truncated)';
} }
deepseekResponse= escapeXml(deepseekResponse); deepseekResponse= escapeXml(deepseekResponse);
// 6. 构建响应XML // 6. 构建响应XML
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment