Skip to content

Commit baaf9c9

Browse files
authored
fix: dynamic routing unified api base url (#25183)
1 parent 29d6858 commit baaf9c9

File tree

1 file changed

+1
-1
lines changed
  • src/content/docs/ai-gateway/features/dynamic-routing

1 file changed

+1
-1
lines changed

src/content/docs/ai-gateway/features/dynamic-routing/usage.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ import OpenAI from "openai";
2121
const cloudflareToken = "CF_AIG_TOKEN";
2222
const accountId = "{account_id}";
2323
const gatewayId = "{gateway_id}";
24-
const baseURL = `https://gateway.ai.cloudflare.com/v1/${accountId}/${gatewayId}`;
24+
const baseURL = `https://gateway.ai.cloudflare.com/v1/${accountId}/${gatewayId}/compat`;
2525

2626
const openai = new OpenAI({
2727
apiKey: cloudflareToken,

0 commit comments

Comments
 (0)