Skip to content

Commit 98e947a

Browse files
committed
fix: remove base URLs from provider specific SDKs
1 parent d389ff5 commit 98e947a

File tree

5 files changed

+0
-11
lines changed

5 files changed

+0
-11
lines changed

src/content/docs/ai-gateway/integrations/vercel-ai-sdk.mdx

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,6 @@ export default {
4343

4444
const openai = createOpenAI({
4545
apiKey: unifiedAuth,
46-
baseURL: "https://api.openai.com/v1",
4746
});
4847

4948
return Response.json({ configured: true });
@@ -84,7 +83,6 @@ export default {
8483

8584
const anthropic = createAnthropic({
8685
apiKey: unifiedAuth,
87-
baseURL: "https://api.anthropic.com",
8886
});
8987

9088
return Response.json({ configured: true });
@@ -125,7 +123,6 @@ export default {
125123

126124
const google = createGoogleGenerativeAI({
127125
apiKey: unifiedAuth,
128-
baseURL: "https://generativelanguage.googleapis.com/v1beta",
129126
});
130127

131128
return Response.json({ configured: true });

src/content/docs/ai-gateway/usage/providers/anthropic.mdx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,6 @@ export default {
8686

8787
const anthropic = new Anthropic({
8888
apiKey: unifiedAuth,
89-
baseURL: "https://api.anthropic.com",
9089
});
9190

9291
const model = "claude-sonnet-4-5";

src/content/docs/ai-gateway/usage/providers/google-ai-studio.mdx

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -101,11 +101,6 @@ export default {
101101
const response = await ai.models.generateContent({
102102
model: "gemini-2.5-flash",
103103
contents: "What is Cloudflare?",
104-
config: {
105-
httpOptions: {
106-
baseUrl: "https://generativelanguage.googleapis.com",
107-
},
108-
},
109104
});
110105

111106
return Response.json({ text: response.text });

src/content/docs/ai-gateway/usage/providers/groq.mdx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,6 @@ export default {
8989

9090
const groq = new Groq({
9191
apiKey: unifiedAuth,
92-
baseURL: "https://api.groq.com/openai/v1",
9392
});
9493

9594
const messages = [{ role: "user", content: "What is Cloudflare?" }];

src/content/docs/ai-gateway/usage/providers/mistral.mdx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,6 @@ export default {
9090

9191
const client = new Mistral({
9292
apiKey: unifiedAuth,
93-
serverURL: "https://api.mistral.ai",
9493
});
9594

9695
const response = await client.chat.create({

0 commit comments

Comments
 (0)