fix: build TypeScript — moduleResolution Bundler + casts API — 117/117 tests

This commit is contained in:
Hermann_Kitio 2026-04-17 00:53:31 +03:00
parent 5b82c6bd46
commit dd2dfaa662
5 changed files with 19 additions and 12 deletions

View file

@ -87,7 +87,9 @@ export async function correctEE(contenu: string, tache: string): Promise<EERappo
throw new Error(`DeepSeek API error: ${response.status} ${response.statusText}`)
}
const data = await response.json()
const data = (await response.json()) as {
choices?: { message?: { content?: string } }[]
}
const content = data.choices?.[0]?.message?.content
if (!content) {
@ -160,7 +162,9 @@ export async function correctEO(transcript: string, tache: string): Promise<EORa
throw new Error(`DeepSeek API error: ${response.status} ${response.statusText}`)
}
const data = await response.json()
const data = (await response.json()) as {
choices?: { message?: { content?: string } }[]
}
const content = data.choices?.[0]?.message?.content
if (!content) {