Opik provides seamless integration with Cloudflare Workers AI allowing you to trace, monitor, and debug your Cloudflare Workers AI applications.
The Opik SDK requires Node.js compatibility mode to be enabled in Cloudflare Workers AI. You can enable it by adding the following to your wrangler.toml file:
See the Cloudflare documentation for more details.
Here is an example of how to use the Opik SDK with Cloudflare Workers AI: