const { callLLMWithMessages } = require('/data/ai/audio/server/dist/services/llm'); (async () => { // 测试 1: minimax M2.7 highspeed (可能有差异) const start = Date.now(); console.log('[qwen] start at', new Date().toISOString()); try { const r = await callLLMWithMessages( [ {role:'system', content:'你是一位图书策划编辑,擅长为心理学经典效应生成详细的富信息大纲。'}, {role:'user', content:'为《心理学经典效应全收录》生成20个章节大纲,每个章节200字简介。'} ], 'qwen3.5-flash', // 直接指定 bailian qwen 8000 ); const sec = Math.floor((Date.now()-start)/1000); console.log('[qwen] success in ' + sec + 's, len=' + r.length); } catch(e) { const sec = Math.floor((Date.now()-start)/1000); console.error('[qwen] failed in ' + sec + 's:', e.message); } process.exit(0); })();