Skip to content

Commit a66e94b

Browse files
kathaylsdnts
authored andcommitted
Update 2025-06-03-aig-openai-compatible-endpoint.mdx (cloudflare#22920)
code fix
1 parent 9d778e1 commit a66e94b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/content/changelog/ai-gateway/2025-06-03-aig-openai-compatible-endpoint.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ import OpenAI from "openai";
1414
const client = new OpenAI({
1515
apiKey: "YOUR_PROVIDER_API_KEY", // Provider API key
1616
baseURL:
17-
"https://gateway.ai.cloudflare.com/v1/{account_id}/{gateway_id}/compat/chat/completions",
17+
"https://gateway.ai.cloudflare.com/v1/{account_id}/{gateway_id}/compat",
1818
});
1919

2020
const response = await client.chat.completions.create({

0 commit comments

Comments
 (0)