mirror of
https://github.com/Yidadaa/ChatGPT-Next-Web.git
synced 2025-08-09 07:30:43 +08:00
feat: simple MCP example
This commit is contained in:
@@ -32,6 +32,7 @@ const nextConfig = {
|
||||
},
|
||||
experimental: {
|
||||
forceSwcTransforms: true,
|
||||
serverActions: true,
|
||||
},
|
||||
};
|
||||
|
||||
@@ -71,8 +72,10 @@ if (mode !== "export") {
|
||||
// },
|
||||
{
|
||||
// https://{resource_name}.openai.azure.com/openai/deployments/{deploy_name}/chat/completions
|
||||
source: "/api/proxy/azure/:resource_name/deployments/:deploy_name/:path*",
|
||||
destination: "https://:resource_name.openai.azure.com/openai/deployments/:deploy_name/:path*",
|
||||
source:
|
||||
"/api/proxy/azure/:resource_name/deployments/:deploy_name/:path*",
|
||||
destination:
|
||||
"https://:resource_name.openai.azure.com/openai/deployments/:deploy_name/:path*",
|
||||
},
|
||||
{
|
||||
source: "/api/proxy/google/:path*",
|
||||
@@ -99,7 +102,7 @@ if (mode !== "export") {
|
||||
destination: "https://dashscope.aliyuncs.com/api/:path*",
|
||||
},
|
||||
];
|
||||
|
||||
|
||||
return {
|
||||
beforeFiles: ret,
|
||||
};
|
||||
|
Reference in New Issue
Block a user