update:1.优化章节管理(1->N)模式下支持修改章节标题 2.AI创作章节内容支持加载模型列表,使用不同模型创作

This commit is contained in:
xiamuceer
2025-12-01 21:16:35 +08:00
parent 34ce6e1aae
commit 16a1686911
6 changed files with 104 additions and 10 deletions
+4 -2
View File
@@ -286,7 +286,8 @@ export function useChapterSync() {
onProgress?: (content: string) => void,
styleId?: number,
targetWordCount?: number,
onProgressUpdate?: (message: string, progress: number) => void
onProgressUpdate?: (message: string, progress: number) => void,
model?: string
) => {
try {
// 使用fetch处理流式响应
@@ -297,7 +298,8 @@ export function useChapterSync() {
},
body: JSON.stringify({
style_id: styleId,
target_word_count: targetWordCount
target_word_count: targetWordCount,
model: model
}),
});