File tree Expand file tree Collapse file tree 5 files changed +0
-11
lines changed
src/content/docs/ai-gateway Expand file tree Collapse file tree 5 files changed +0
-11
lines changed Original file line number Diff line number Diff 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 });
Original file line number Diff line number Diff 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" ;
Original file line number Diff line number Diff 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 });
Original file line number Diff line number Diff 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?" }];
Original file line number Diff line number Diff 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 ({
You can’t perform that action at this time.
0 commit comments