update:1.优化章节管理(1->N)模式下支持修改章节标题 2.AI创作章节内容支持加载模型列表,使用不同模型创作
This commit is contained in:
@@ -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
|
||||
}),
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user