fix: build TypeScript — moduleResolution Bundler + casts API — 117/117 tests
This commit is contained in:
parent
5b82c6bd46
commit
dd2dfaa662
5 changed files with 19 additions and 12 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue