feat: simple MCP example

This commit is contained in:
Kadxy
2024-12-28 14:31:43 +08:00
parent e1c7c54dfa
commit c3108ad333
10 changed files with 413 additions and 9 deletions

View File

@@ -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,
};