mirror of
https://github.com/ChatGPTNextWeb/ChatGPT-Next-Web.git
synced 2026-02-08 23:44:25 +08:00
thay doi alibaba module mac dinh - chebichat
This commit is contained in:
@@ -20,7 +20,11 @@ async function handle(
|
||||
req: NextRequest,
|
||||
{ params }: { params: { provider: string; path: string[] } },
|
||||
) {
|
||||
// Handle OPTIONS request for CORS preflight
|
||||
// params.provider = MODEL_PROVIDER;
|
||||
|
||||
const apiPath = `/api/${params.provider}`;
|
||||
|
||||
console.log(`[${params.provider} Route] params `, params);
|
||||
switch (apiPath) {
|
||||
case ApiPath.Azure:
|
||||
|
||||
Reference in New Issue
Block a user