Browse Source

Merge pull request #5740 from yuxuan-ctrl/main

feat: 新增阿里系模型代码配置
Lloyd Zhou 1 năm trước cách đây
mục cha
commit
d0bd1bf8fd
1 tập tin đã thay đổi với 5 bổ sung1 xóa
  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,
     };