Spaces:
Running
on
CPU Upgrade
Running
on
CPU Upgrade
Commit
β’
1763a89
1
Parent(s):
c391561
quick fix
Browse files
src/app/queries/predictWithAnthropic.ts
CHANGED
@@ -40,7 +40,7 @@ export async function predict({
|
|
40 |
max_tokens: nbMaxNewTokens,
|
41 |
})
|
42 |
|
43 |
-
return res.content[0]?.text || ""
|
44 |
} catch (err) {
|
45 |
console.error(`error during generation: ${err}`)
|
46 |
return ""
|
|
|
40 |
max_tokens: nbMaxNewTokens,
|
41 |
})
|
42 |
|
43 |
+
return (res.content[0] as any)?.text || ""
|
44 |
} catch (err) {
|
45 |
console.error(`error during generation: ${err}`)
|
46 |
return ""
|