feat: add support for iFLYTEK Spark API (接入讯飞星火模型)

This commit is contained in:
webws
2024-08-03 17:20:26 +08:00
committed by song
parent f900283b09
commit b2c1644d69
13 changed files with 556 additions and 1 deletions

View File

@@ -9,7 +9,7 @@ import { handle as bytedanceHandler } from "../../bytedance";
import { handle as alibabaHandler } from "../../alibaba";
import { handle as moonshotHandler } from "../../moonshot";
import { handle as stabilityHandler } from "../../stability";
import { handle as iflytekHandler } from "../../iflytek";
async function handle(
req: NextRequest,
{ params }: { params: { provider: string; path: string[] } },
@@ -34,6 +34,8 @@ async function handle(
return moonshotHandler(req, { params });
case ApiPath.Stability:
return stabilityHandler(req, { params });
case ApiPath.Iflytek:
return iflytekHandler(req, { params });
default:
return openaiHandler(req, { params });
}