Skip to content

Commit

Permalink
disable nextjs proxy, then can using dalle as plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
lloydzhou committed Sep 5, 2024
1 parent 9820193 commit b590d08
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions next.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -65,10 +65,10 @@ if (mode !== "export") {
nextConfig.rewrites = async () => {
const ret = [
// adjust for previous version directly using "/api/proxy/" as proxy base route
{
source: "/api/proxy/v1/:path*",
destination: "https://api.openai.com/v1/:path*",
},
// {
// source: "/api/proxy/v1/:path*",
// destination: "https://api.openai.com/v1/:path*",
// },
{
// https://{resource_name}.openai.azure.com/openai/deployments/{deploy_name}/chat/completions
source: "/api/proxy/azure/:resource_name/deployments/:deploy_name/:path*",
Expand Down

0 comments on commit b590d08

Please sign in to comment.