明树Git Lab

Commit f3292c20 authored by zfp1's avatar zfp1

2

parent bb48e2fc
......@@ -99,7 +99,7 @@ async function callDeepSeekAPI(prompt) {
}
);
console.log(JSON.stringify(response.data.choices), "================================")
return response.data.choices[0].message.content.trim();
return response.data.choices[0].message.content;
// } catch (error) {
// console.error('DeepSeek API Error:', error.response?.data || error.message);
// return '服务暂时不可用,请稍后再试';
......@@ -108,6 +108,7 @@ async function callDeepSeekAPI(prompt) {
// 构建文本响应XML
function buildTextResponse(message, content) {
console.log("content: ", content)
const builder = new Builder({
xmldec: { version: '1.0', encoding: 'UTF-8' },
cdata: true
......
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