Skip to content

Commit 53221b8

Browse files
[AIG]New Workers Binding Methods changelog (#19555)
* New Workers Binding Methods changelog * Update src/content/changelogs-next/2025-01-26-worker-binding-methods.mdx Co-authored-by: Matt Silverlock <[email protected]> * Update src/content/changelogs-next/2025-01-26-worker-binding-methods.mdx Co-authored-by: Matt Silverlock <[email protected]> * Update src/content/changelogs-next/2025-01-26-worker-binding-methods.mdx Co-authored-by: Matt Silverlock <[email protected]> * Update src/content/changelogs-next/2025-01-26-worker-binding-methods.mdx Co-authored-by: Matt Silverlock <[email protected]> * Suggested edits --------- Co-authored-by: Matt Silverlock <[email protected]>
1 parent 4239ae2 commit 53221b8

File tree

4 files changed

+38
-15
lines changed

4 files changed

+38
-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: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
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-30T14:00:00Z
7+
---
8+
9+
We have released new,[Workers bindings API](/ai-gateway/integrations/worker-binding-methods/), allowing you to connect Workers applications to AI Gateway directly. These methods simplify how Workers calls AI services behind your AI Gateway configurations, removing the need to use the REST API and manually authenticate.
10+
11+
To add an AI binding to your Worker, include the following in your `wrangler.toml` or `wrangler.json` file:
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)

0 commit comments

Comments
 (0)