feat: add force option to project generation for reprocessing completed segments
This commit is contained in:
@@ -118,9 +118,10 @@ export const audiobookApi = {
|
||||
await apiClient.post(`/audiobook/projects/${projectId}/chapters/${chapterId}/parse`)
|
||||
},
|
||||
|
||||
generate: async (id: number, chapterIndex?: number): Promise<void> => {
|
||||
generate: async (id: number, chapterIndex?: number, force?: boolean): Promise<void> => {
|
||||
await apiClient.post(`/audiobook/projects/${id}/generate`, {
|
||||
chapter_index: chapterIndex ?? null,
|
||||
force: force ?? false,
|
||||
})
|
||||
},
|
||||
|
||||
|
||||
Reference in New Issue
Block a user