parent
e32a44a4cb
commit
895f44a030
|
@ -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.'
|
||||
})
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue