Commit 7a13971
committed
fix(model_builder): Only set s3_upload_path for S3 URIs in passthrough
In _build_for_passthrough(), model_path could be a local /tmp path.
Setting s3_upload_path to a local path caused CreateModel API to reject
the modelDataUrl with a validation error since it requires s3:// or
https:// URIs. Now only S3 URIs are assigned to s3_upload_path; local
paths are handled separately by _prepare_for_mode() in LOCAL_CONTAINER
mode.1 parent d7c98bb commit 7a13971
1 file changed
+3
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1289 | 1289 | | |
1290 | 1290 | | |
1291 | 1291 | | |
1292 | | - | |
1293 | | - | |
1294 | | - | |
| 1292 | + | |
1295 | 1293 | | |
| 1294 | + | |
| 1295 | + | |
1296 | 1296 | | |
1297 | 1297 | | |
1298 | 1298 | | |
| |||
0 commit comments