Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add workers ai usage warning in local mode #12190

Merged
merged 2 commits into from
Dec 12, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading