feat: 实装AI改写结局功能 - 接入DeepSeek API - AI动态生成新结局名称 - 新增rewrite类型结局样式 - 修复请求超时问题

This commit is contained in:
2026-03-05 15:57:51 +08:00
parent 89b5a3b658
commit d47ccd7039
11 changed files with 513 additions and 15 deletions

View File

@@ -137,10 +137,10 @@ export default class StoryManager {
ending_name: ending?.name,
ending_content: ending?.content,
prompt: prompt
});
}, { timeout: 60000 });
return result;
} catch (error) {
console.error('AI改写失败:', error);
console.error('AI改写失败:', error?.errMsg || error?.message || JSON.stringify(error));
return null;
}
}