Skip to content

Commit

Permalink
Add workers ai usage warning in local mode (#4586)
Browse files Browse the repository at this point in the history
* Add workers ai usage warning in local mode
  • Loading branch information
G4brym authored Dec 11, 2023
1 parent 3314dbd commit ba9b88f
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions packages/wrangler/src/dev/miniflare.ts
Original file line number Diff line number Diff line change
Expand Up @@ -507,6 +507,12 @@ async function buildMiniflareOptions(
logger.warn("Miniflare 3 does not support CRON triggers yet, ignoring...");
}

if (config.bindings.ai) {
logger.warn(
"Using Workers AI always accesses your Cloudflare account in order to run AI models, and so will incur usage charges even in local development."
);
}

if (config.bindings.vectorize?.length) {
// TODO: add local support for Vectorize bindings (https://github.com/cloudflare/workers-sdk/issues/4360)
logger.warn(
Expand Down

0 comments on commit ba9b88f

Please sign in to comment.