Skip to content

Commit 3d4a1ca

Browse files
New Workers Binding Methods changelog
1 parent a67013d commit 3d4a1ca

File tree

4 files changed

+40
-15
lines changed

4 files changed

+40
-15
lines changed

package-lock.json

Lines changed: 15 additions & 15 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
9.95 KB
Loading
17.9 KB
Loading
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
---
2+
title: AI Gateway Introduces New Worker Binding Methods
3+
description: New Worker binding methods, enhancing integration capabilities for developers.
4+
products:
5+
- ai-gateway
6+
date: 2025-01-26T14:00:00Z
7+
---
8+
9+
Cloudflare's AI Gateway has released new Worker binding methods, enhancing integration capabilities for developers. These methods enable more streamlined interactions between Workers and AI Gateway.
10+
11+
To utilize these features, you need to add an AI binding to your Worker. In your `wrangler.toml` or `wrangler.json` file, include the following:
12+
13+
![Add an AI binding to your Worker.](~/assets/images/ai-gateway/add-binding.png)
14+
15+
With the new AI Gateway binding methods, you can now:
16+
17+
- Send feedback and update metadata with `patchLog`.
18+
- Retrieve detailed log information using `getLog`.
19+
- Execute universal requests to any AI Gateway provider with `run`.
20+
21+
For example, to send feedback and update metadata using patchLog:
22+
23+
![Send feedback and update metadata using patchLog:](~/assets/images/ai-gateway/send-feedback.png)
24+
25+
For detailed setup instructions, see our [AI Gateway Binding methods documentation](/ai-gateway/integrations/worker-binding-methods/).

0 commit comments

Comments
 (0)