you'd probably want to just: ```js try { await env.AI.run(...) } catch (e) { return new Resp

you'd probably want to just:
try {
    await env.AI.run(...)
} catch (e) {
    return new Response('handle errors here')
}

and then consider retrying with errors if it makes sense.
Was this page helpful?