feat: close #1301 support message actions

This commit is contained in:
Yidadaa
2023-05-09 00:39:00 +08:00
parent 1b19fdfe11
commit 222301307f
9 changed files with 68 additions and 21 deletions

View File

@@ -5,7 +5,12 @@ const nextConfig = {
appDir: true,
},
async rewrites() {
const ret = [];
const ret = [
{
source: "/api/proxy/:path*",
destination: "https://api.openai.com/:path*",
},
];
const apiUrl = process.env.API_URL;
if (apiUrl) {