mirror of
https://github.com/Yidadaa/ChatGPT-Next-Web.git
synced 2025-08-20 12:38:07 +08:00
feat: add 302.AI provider
This commit is contained in:
@@ -15,6 +15,7 @@ import { handle as siliconflowHandler } from "../../siliconflow";
|
||||
import { handle as xaiHandler } from "../../xai";
|
||||
import { handle as chatglmHandler } from "../../glm";
|
||||
import { handle as proxyHandler } from "../../proxy";
|
||||
import { handle as ai302Handler } from "../../302ai";
|
||||
|
||||
async function handle(
|
||||
req: NextRequest,
|
||||
@@ -52,6 +53,8 @@ async function handle(
|
||||
return siliconflowHandler(req, { params });
|
||||
case ApiPath.OpenAI:
|
||||
return openaiHandler(req, { params });
|
||||
case ApiPath["302.AI"]:
|
||||
return ai302Handler(req, { params });
|
||||
default:
|
||||
return proxyHandler(req, { params });
|
||||
}
|
||||
|
Reference in New Issue
Block a user