Skip to content

Commit 301de30

Browse files
committed
Added nocache=true query param to the model upload api call to ensure we have the latest data for the model version.
1 parent 8c6415b commit 301de30

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

roboflow/core/version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -570,7 +570,7 @@ def deploy(self, model_type: str, model_path: str) -> None:
570570
)
571571

572572
res = requests.get(
573-
f"{API_URL}/{self.workspace}/{self.project}/{self.version}/uploadModel?api_key={self.__api_key}&modelType={model_type}"
573+
f"{API_URL}/{self.workspace}/{self.project}/{self.version}/uploadModel?api_key={self.__api_key}&modelType={model_type}&nocache=true"
574574
)
575575
try:
576576
if res.status_code == 429:

0 commit comments

Comments
 (0)