Skip to content

Commit

Permalink
Add workers ai usage warning in local mode (#12190)
Browse files Browse the repository at this point in the history
* Add workers ai usage warning in local mode

* Add workers ai section to wrangler configuration.md
  • Loading branch information
G4brym authored Dec 12, 2023
1 parent f50507a commit 0009367
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 0 deletions.
2 changes: 2 additions & 0 deletions content/workers-ai/platform/limits.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,3 +21,5 @@ During the open beta, the following limits are in place:
- [@cf/baai/bge-base-en-v1.5](/workers-ai/models/text-embeddings/) - 6000 reqs/min

Note that these limits are estimates, subject to change, and will vary by location while in Open Beta.

Model inferences in local mode using Wrangler will also count towards these limits.
26 changes: 26 additions & 0 deletions content/workers/wrangler/configuration.md
Original file line number Diff line number Diff line change
Expand Up @@ -793,6 +793,32 @@ mTLS certificate bindings can then be used at runtime to communicate with secure

{{<render file="_types-bindings.md" productFolder="/email-routing/">}}

### AI

[Workers AI](/workers-ai/) allows you to run machine learning models, on the Cloudflare network, from your own code –
whether that be from Workers, Pages, or anywhere via REST API.

Using Workers AI always accesses your Cloudflare account in order to run AI models, and so will incur usage charges
even in local development.

{{<definitions>}}

- `binding` {{<type>}}string{{</type>}} {{<prop-meta>}}required{{</prop-meta>}}

- The binding name.

{{</definitions>}}

Example:

```toml
---
filename: wrangler.toml
---
[ai]
binding = "AI" # i.e. available in your Worker on env.AI
```

## Bundling

You can bundle assets into your Worker using the `rules` key, making these assets available to be imported when your Worker is invoked. The `rules` key will be an array of the below object.
Expand Down

0 comments on commit 0009367

Please sign in to comment.