Bladeren bron

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

yuxuan-ctrl 1 jaar geleden
bovenliggende
commit
86ffa1e643
1 gewijzigde bestanden met toevoegingen van 5 en 1 verwijderingen
  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,
     };