Closed Cherry closed 4 months ago
Done! This isn't necessary to use the new binding, but good to stay up to date nonetheless.
I've also removed the compat flags that were manually enabled, as they're now default with a more modern compat date. Reference: https://cfdata.lol/workerd/
As of 2024-04-11, there's no need to use the
@cloudflare/ai
package and it's deprecated:https://developers.cloudflare.com/workers-ai/changelog/
This swaps the code over to use the native binding on
env.AI
directly. No other code changes are needed.