mirror of
https://github.com/ChatGPTNextWeb/ChatGPT-Next-Web.git
synced 2025-05-19 12:10:17 +09:00
disable nextjs proxy, then can using dalle as plugin
This commit is contained in:
parent
982019307c
commit
b590d0857c
@ -65,10 +65,10 @@ if (mode !== "export") {
|
|||||||
nextConfig.rewrites = async () => {
|
nextConfig.rewrites = async () => {
|
||||||
const ret = [
|
const ret = [
|
||||||
// adjust for previous version directly using "/api/proxy/" as proxy base route
|
// adjust for previous version directly using "/api/proxy/" as proxy base route
|
||||||
{
|
// {
|
||||||
source: "/api/proxy/v1/:path*",
|
// source: "/api/proxy/v1/:path*",
|
||||||
destination: "https://api.openai.com/v1/:path*",
|
// destination: "https://api.openai.com/v1/:path*",
|
||||||
},
|
// },
|
||||||
{
|
{
|
||||||
// https://{resource_name}.openai.azure.com/openai/deployments/{deploy_name}/chat/completions
|
// https://{resource_name}.openai.azure.com/openai/deployments/{deploy_name}/chat/completions
|
||||||
source: "/api/proxy/azure/:resource_name/deployments/:deploy_name/:path*",
|
source: "/api/proxy/azure/:resource_name/deployments/:deploy_name/:path*",
|
||||||
|
Loading…
Reference in New Issue
Block a user