Update route.ts

Update url
This commit is contained in:
Zhun ye 2024-10-28 03:07:42 +08:00 committed by GitHub
parent e32a44a4cb
commit 895f44a030
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 2 deletions

View File

@ -3,7 +3,7 @@ import {createErrorResponse, getPluginSettingsFromRequest, PluginErrorType} from
import {IImageGenerationResponse, IImageGenerationResult, IImageGenerationStatusResponse, Settings} from "@/type";
import axios from "axios";
const BASE_URL = process.env.BASE_URL || 'https://api.alibabacloud.com'
const BASE_URL = process.env.BASE_URL || 'https://dashscope.aliyuncs.com/api/v1'
export async function POST(req: NextRequest) {
@ -104,4 +104,4 @@ export async function POST(req: NextRequest) {
message: 'Failed to generate image.'
})
}
}
}