Ver Fonte

feat: 新增阿里系模型代码配置

yuxuan-ctrl há 1 ano atrás
pai
commit
86ffa1e643
1 ficheiros alterados com 5 adições e 1 exclusões
  1. 5 1
      next.config.mjs

+ 5 - 1
next.config.mjs

@@ -94,8 +94,12 @@ if (mode !== "export") {
         source: "/sharegpt",
         destination: "https://sharegpt.com/api/conversations",
       },
+      {
+        source: "/api/proxy/alibaba/:path*",
+        destination: "https://dashscope.aliyuncs.com/api/:path*",
+      },
     ];
-
+    
     return {
       beforeFiles: ret,
     };