jbilcke-hf HF staff commited on
Commit
1763a89
β€’
1 Parent(s): c391561
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 ""