fix(voice): recover empty failed lessons

This commit is contained in:
zhangheng
2026-07-22 21:19:22 +08:00
parent 55084a4784
commit 80e670d72b
8 changed files with 226 additions and 13 deletions

View File

@@ -641,6 +641,13 @@ export async function discardVoiceSegment(segmentId: string): Promise<void> {
)
}
export async function discardEmptyVoiceLesson(lessonId: string): Promise<void> {
await request<unknown>(
`/api/v1/feedback-lessons/${encodeURIComponent(lessonId)}`,
'DELETE'
)
}
export async function generateFeedbackFromVoice(
sessionId: string,
existingContent: string