Add new provider OpenRouter

This commit is contained in:
wyfyjc
2025-03-02 14:36:16 +08:00
parent f7cde17919
commit 636b234079
13 changed files with 550 additions and 2 deletions

View File

@@ -14,6 +14,7 @@ import { handle as deepseekHandler } from "../../deepseek";
import { handle as siliconflowHandler } from "../../siliconflow";
import { handle as xaiHandler } from "../../xai";
import { handle as chatglmHandler } from "../../glm";
import { handle as openrouterHandler } from "../../openrouter";
import { handle as proxyHandler } from "../../proxy";
async function handle(
@@ -50,6 +51,8 @@ async function handle(
return chatglmHandler(req, { params });
case ApiPath.SiliconFlow:
return siliconflowHandler(req, { params });
case ApiPath.OpenRouter:
return openrouterHandler(req, { params });
case ApiPath.OpenAI:
return openaiHandler(req, { params });
default: