8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 70af197 commit a194b7bCopy full SHA for a194b7b
src/sasctl/tasks.py
@@ -1019,7 +1019,7 @@ def upload_local_model(
1019
repo_name : Union[str, dict], optional
1020
repository in which to create the project
1021
version: str, optional
1022
- The version of the model being uploaded
+ The version of the model being uploaded. Defaults to 'latest'. For new model version, use 'new'.
1023
"""
1024
# Use default repository if not specified
1025
try:
@@ -1058,7 +1058,8 @@ def upload_local_model(
1058
data = {
1059
"name": model_name,
1060
"projectId": p.id,
1061
- "type": "ASTORE",
+ "type": "ASTORE",
1062
+ "versionOption": version
1063
}
1064
files = {"files": (sasast_file.name, sasast_model)}
1065
model = mr.post("/models", files=files, data=data)
0 commit comments