Skip to content

Commit ea7ff1a

Browse files
committed
Merge branch 'production' into ai-sidenav
2 parents b2b1e48 + 4f5da26 commit ea7ff1a

File tree

4 files changed

+64
-16
lines changed

4 files changed

+64
-16
lines changed

src/content/docs/cache/how-to/purge-cache/index.mdx

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,18 @@ If versioning is active on your zone and multiple environments are configured, y
1818

1919
<FeatureTable id="cache.purge_cache" />
2020

21+
### Hostname, tag, prefix URL, and purge everything limits
22+
23+
The current purge limits are applied per **account**:
24+
25+
<FeatureTable id="cache.purge_limits" />
26+
27+
### Single-file purge limits
28+
29+
The current purge limits are applied per **account**:
30+
31+
<FeatureTable id="cache.single_file_purge" />
32+
2133
### Token bucket rate limiting
2234

2335
Cloudflare uses token bucket rate limiting to limit the number of purge requests flowing through the system at any given time, ensuring a steady and manageable flow.

src/content/docs/workers-ai/features/function-calling/embedded/get-started.mdx

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ head:
77
- tag: title
88
content: Get Started
99
---
10+
import { TypeScriptExample } from "~/components";
1011

1112
This guide will instruct you through setting up and deploying your first Workers AI project with embedded function calling. You will use Workers, a Workers AI binding, the [`ai-utils package`](https://github.com/cloudflare/ai-utils), and a large language model (LLM) to deploy your first AI-powered application on the Cloudflare global network with embedded function calling.
1213

@@ -26,7 +27,10 @@ npm install @cloudflare/ai-utils --save
2627

2728
Update the `index.ts` file in your application directory with the following code:
2829

29-
```ts title="Embedded function calling example"
30+
31+
<TypeScriptExample filename="index.ts">
32+
33+
```ts
3034
import { runWithTools } from "@cloudflare/ai-utils";
3135

3236
type Env = {
@@ -76,6 +80,7 @@ export default {
7680
},
7781
} satisfies ExportedHandler<Env>;
7882
```
83+
</TypeScriptExample>
7984

8085
This example imports the utils with `import { runWithTools} from "@cloudflare/ai-utils"` and follows the API reference below.
8186

src/content/docs/workers-ai/get-started/workers-wrangler.mdx

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ head:
99
description: Deploy your first Cloudflare Workers AI project using the CLI.
1010
---
1111

12-
import { Render, PackageManagers, WranglerConfig } from "~/components";
12+
import { Render, PackageManagers, WranglerConfig, TypeScriptExample } from "~/components";
1313

1414
This guide will instruct you through setting up and deploying your first Workers AI project. You will use [Workers](/workers/), a Workers AI binding, and a large language model (LLM) to deploy your first AI-powered application on the Cloudflare global network.
1515

@@ -73,7 +73,9 @@ You are now ready to run an inference task in your Worker. In this case, you wil
7373

7474
Update the `index.ts` file in your `hello-ai` application directory with the following code:
7575

76-
```typescript title="src/index.ts"
76+
<TypeScriptExample filename="index.ts">
77+
78+
```ts
7779
export interface Env {
7880
// If you set another name in the Wrangler config file as the value for 'binding',
7981
// replace "AI" with the variable name you defined.
@@ -90,6 +92,7 @@ export default {
9092
},
9193
} satisfies ExportedHandler<Env>;
9294
```
95+
</TypeScriptExample>
9396

9497
Up to this point, you have created an AI binding for your Worker and configured your Worker to be able to execute the Llama 3.1 model. You can now test your project locally before you deploy globally.
9598

src/content/plans/index.json

Lines changed: 41 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -441,20 +441,48 @@
441441
"pro": "URL, Hostname, Tag, Prefix, and Purge Everything",
442442
"biz": "URL, Hostname, Tag, Prefix, and Purge Everything",
443443
"ent": "URL, Hostname, Tag, Prefix, and Purge Everything"
444+
}
445+
}
446+
},
447+
"purge_limits": {
448+
"title": "Purge limits for hostname, tag, prefix URL, and purge everything.",
449+
"link": "/cache/how-to/purge-cache/",
450+
"properties": {
451+
"availability": {
452+
"title": "Requests",
453+
"summary": "Available on all plans",
454+
"free": "5 requests per minute",
455+
"pro": "5 requests per second",
456+
"biz": "10 requests per second",
457+
"ent": "50 requests per second"
458+
},
459+
"limits_bucket": {
460+
"title": "Bucket size",
461+
"free": "25",
462+
"pro": "25",
463+
"biz": "50",
464+
"ent": "500"
444465
},
445-
"limits": {
446-
"title": "Purge limits (tags, prefix URL, hostname, and purge everything). The limits are per account.",
447-
"free": "5 requests per minute with a bucket size of 25, supporting up to 100 operations per request.",
448-
"pro": "5 requests per second with a bucket size of 25, supporting up to 100 operations per request",
449-
"biz": "10 requests per second with a bucket size of 50, supporting up to 100 operations per request",
450-
"ent": "50 requests per second with a bucket size of 500, supporting up to 100 operations per request"
451-
},
452-
"limits_single_file": {
453-
"title": "Purge limits (single file purge). The limits are per account.",
454-
"free": "800 URLs per second",
455-
"pro": "1500 URLs per second",
456-
"biz": "1500 URLs per second",
457-
"ent": "3000 URLs per second"
466+
"limits_operations": {
467+
"title": "Max operations per request",
468+
"free": "100",
469+
"pro": "100",
470+
"biz": "100",
471+
"ent": "100"
472+
}
473+
}
474+
},
475+
"single_file_purge": {
476+
"title": "Single file purge",
477+
"link": "/cache/how-to/purge-cache/purge-by-single-file/",
478+
"properties": {
479+
"availability": {
480+
"title": "URLs",
481+
"summary": "Available on all plans",
482+
"free": "800 URLs per second",
483+
"pro": "1500 URLs per second",
484+
"biz": "1500 URLs per second",
485+
"ent": "3000 URLs per second"
458486
}
459487
}
460488
},

0 commit comments

Comments
 (0)