From f182b038ca86f60c8000e396def35eb1d3de84c7 Mon Sep 17 00:00:00 2001 From: Kathy <153706637+kathayl@users.noreply.github.com> Date: Fri, 30 May 2025 14:53:31 -0700 Subject: [PATCH 1/2] Update chat-completion.mdx universal endpoint + openai compat bonus value --- src/content/docs/ai-gateway/chat-completion.mdx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/content/docs/ai-gateway/chat-completion.mdx b/src/content/docs/ai-gateway/chat-completion.mdx index 1e9972a711989a..31aae8ba9df598 100644 --- a/src/content/docs/ai-gateway/chat-completion.mdx +++ b/src/content/docs/ai-gateway/chat-completion.mdx @@ -64,7 +64,7 @@ curl -X POST https://gateway.ai.cloudflare.com/v1/{account_id}/{gateway_id}/comp ### Universal provider -You can also use this pattern with a [Universal Endpoint](/ai-gateway/universal/). +You can also use this pattern with the [Universal Endpoint](/ai-gateway/universal/) to add [fallbacks](/ai-gateway/configuration/fallbacks/) across multiple providers. When used in combination, every response, no matter if it comes from the primary model or a fallback will return the same standardized format, so no extra parsing logic is required. ```ts title="index.ts" export interface Env { From 2a01144f6605b3a0f996393628e4b1ef02f7a38c Mon Sep 17 00:00:00 2001 From: Kathy <153706637+kathayl@users.noreply.github.com> Date: Mon, 2 Jun 2025 10:46:56 -0700 Subject: [PATCH 2/2] Update src/content/docs/ai-gateway/chat-completion.mdx Co-authored-by: Kody Jackson --- src/content/docs/ai-gateway/chat-completion.mdx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/content/docs/ai-gateway/chat-completion.mdx b/src/content/docs/ai-gateway/chat-completion.mdx index 31aae8ba9df598..41113098f55dbe 100644 --- a/src/content/docs/ai-gateway/chat-completion.mdx +++ b/src/content/docs/ai-gateway/chat-completion.mdx @@ -64,7 +64,7 @@ curl -X POST https://gateway.ai.cloudflare.com/v1/{account_id}/{gateway_id}/comp ### Universal provider -You can also use this pattern with the [Universal Endpoint](/ai-gateway/universal/) to add [fallbacks](/ai-gateway/configuration/fallbacks/) across multiple providers. When used in combination, every response, no matter if it comes from the primary model or a fallback will return the same standardized format, so no extra parsing logic is required. +You can also use this pattern with the [Universal Endpoint](/ai-gateway/universal/) to add [fallbacks](/ai-gateway/configuration/fallbacks/) across multiple providers. When used in combination, every request will return the same standardized format, whether from the primary or fallback model. This behavior means that you do not have to add extra parsing logic to your app. ```ts title="index.ts" export interface Env {