fix: update modelarts access_address 0622

Former-commit-id: c913e9759a8797446ce97f99e8681fe84f01d887
This commit is contained in:
qiwang 2024-06-22 15:44:11 +08:00
parent 031b016476
commit 5757cd47a3
1 changed files with 1 additions and 1 deletions

View File

@ -487,7 +487,7 @@ func SendRequest(method, url string, file multipart.File, fileName string) (stri
if err != nil {
fmt.Println("Error closing multipart writer:", err)
}
request, err := http.NewRequest(method, "https://modelarts-inference.cloudbrain2.pcl.ac.cn/v1/infers/fb0f011f-3e74-4396-ab81-20d65525d22b/image", &body)
request, err := http.NewRequest(method, url, &body)
if err != nil {
fmt.Println("Error creating new request:", err)
//return nil, err