mirror of
https://github.com/Nezumi-2711/9router.git
synced 2026-09-22 20:00:47 +00:00
Add Vercel AI Gateway provider support (#1183)
This commit is contained in:
@@ -251,6 +251,13 @@ export async function POST(request) {
|
||||
isValid = openaiRes.ok;
|
||||
break;
|
||||
|
||||
case "vercel-ai-gateway":
|
||||
const vercelAiGatewayRes = await fetch("https://ai-gateway.vercel.sh/v1/models", {
|
||||
headers: { "Authorization": `Bearer ${apiKey}` },
|
||||
});
|
||||
isValid = vercelAiGatewayRes.ok;
|
||||
break;
|
||||
|
||||
case "anthropic":
|
||||
const anthropicRes = await fetch("https://api.anthropic.com/v1/messages", {
|
||||
method: "POST",
|
||||
|
||||
Reference in New Issue
Block a user