From 1a41df3bc5d369ebfe2bcd973d9ad25bdd802c0f Mon Sep 17 00:00:00 2001 From: Kathy <153706637+kathayl@users.noreply.github.com> Date: Tue, 19 Nov 2024 09:55:54 -0800 Subject: [PATCH] Update workersai.mdx Make more clear how to use binding with Workers AI --- src/content/docs/ai-gateway/providers/workersai.mdx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/content/docs/ai-gateway/providers/workersai.mdx b/src/content/docs/ai-gateway/providers/workersai.mdx index 1f80c3148cbbb34..5159f25c894fa2b 100644 --- a/src/content/docs/ai-gateway/providers/workersai.mdx +++ b/src/content/docs/ai-gateway/providers/workersai.mdx @@ -7,7 +7,7 @@ sidebar: import { Render } from "~/components"; -Use AI Gateway for analytics, caching, and security on requests to [Workers AI](/workers-ai/). +Use AI Gateway for analytics, caching, and security on requests to [Workers AI](/workers-ai/). Workers AI integrates seamlessly with AI Gateway, allowing you to execute AI inference via API requests or through an environment binding for Workers scripts. The binding simplifies the process by routing requests through your AI Gateway with minimal setup. ## REST API @@ -69,9 +69,9 @@ curl https://gateway.ai.cloudflare.com/v1/{account_id}/{gateway_id}/workers-ai/v ' ``` -### Worker +## Workers Binding -To include an AI Gateway within your Worker, add the gateway as an object in your Workers AI request. +You can integrate Workers AI with AI Gateway using an environment binding. To include an AI Gateway within your Worker, add the gateway as an object in your Workers AI request. ```ts export interface Env {