From c4cb8ecab97b377ab696553d405df3adaa11631a Mon Sep 17 00:00:00 2001 From: Mohit Verma Date: Fri, 31 Oct 2025 15:11:35 +0530 Subject: [PATCH 1/3] rename model commands --- singlestoredb/fusion/handlers/models.py | 28 ++++++++++++------------- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/singlestoredb/fusion/handlers/models.py b/singlestoredb/fusion/handlers/models.py index 8dc53ffc..c207e0b9 100644 --- a/singlestoredb/fusion/handlers/models.py +++ b/singlestoredb/fusion/handlers/models.py @@ -14,7 +14,7 @@ class ShowModelsHandler(ShowFilesHandler): """ - SHOW MODELS + SHOW MODEL FILES [ at_path ] [ ] [ ] [ ] [ recursive ] [ extended ]; @@ -55,16 +55,16 @@ class ShowModelsHandler(ShowFilesHandler): -------- The following command lists the models:: - SHOW MODELS; + SHOW MODEL FILES; The following command lists the models with additional information:: - SHOW MODELS EXTENDED; + SHOW MODEL FILES EXTENDED; See Also -------- - * ``UPLOAD MODEL model_name FROM path`` - * ``DOWNLOAD MODEL model_name`` + * ``UPLOAD MODEL FILE model_name FROM path`` + * ``DOWNLOAD MODEL FILE model_name`` """ # noqa: E501 @@ -80,7 +80,7 @@ def run(self, params: Dict[str, Any]) -> Optional[FusionSQLResult]: class UploadModelHandler(SQLHandler): """ - UPLOAD MODEL model_name + UPLOAD MODEL FILE model_name FROM local_path [ overwrite ]; # Model Name @@ -112,12 +112,12 @@ class UploadModelHandler(SQLHandler): The following command uploads a file to models space and overwrite any existing files at the specified path:: - UPLOAD MODEL model_name + UPLOAD MODEL FILE model_name FROM 'llama3/' OVERWRITE; See Also -------- - * ``DOWNLOAD MODEL model_name`` + * ``DOWNLOAD MODEL FILE model_name`` """ # noqa: E501 @@ -150,7 +150,7 @@ def run(self, params: Dict[str, Any]) -> Optional[FusionSQLResult]: class DownloadModelHandler(SQLHandler): """ - DOWNLOAD MODEL model_name + DOWNLOAD MODEL FILE model_name [ local_path ] [ overwrite ]; @@ -184,17 +184,17 @@ class DownloadModelHandler(SQLHandler): The following command displays the contents of the file on the standard output:: - DOWNLOAD MODEL llama3; + DOWNLOAD MODEL FILE llama3; The following command downloads a model to a specific location and overwrites any existing models folder with the name ``local_llama3`` on the local storage:: - DOWNLOAD MODEL llama3 + DOWNLOAD MODEL FILE llama3 TO 'local_llama3' OVERWRITE; See Also -------- - * ``UPLOAD MODEL model_name FROM local_path`` + * ``UPLOAD MODEL FILE model_name FROM local_path`` """ # noqa: E501 @@ -218,7 +218,7 @@ def run(self, params: Dict[str, Any]) -> Optional[FusionSQLResult]: class DropModelsHandler(SQLHandler): """ - DROP MODEL model_name; + DROP MODEL FILE model_name; # Model Name model_name = '' @@ -235,7 +235,7 @@ class DropModelsHandler(SQLHandler): -------- The following commands deletes a model from a model space:: - DROP MODEL llama3; + DROP MODEL FILE llama3; """ # noqa: E501 From 16d0bb8e99993ed0f2eac1c47afcd7fcb8302bc7 Mon Sep 17 00:00:00 2001 From: Mohit Verma Date: Thu, 6 Nov 2025 15:23:34 +0530 Subject: [PATCH 2/3] changes --- singlestoredb/fusion/handlers/models.py | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/singlestoredb/fusion/handlers/models.py b/singlestoredb/fusion/handlers/models.py index c207e0b9..ff081632 100644 --- a/singlestoredb/fusion/handlers/models.py +++ b/singlestoredb/fusion/handlers/models.py @@ -12,7 +12,7 @@ from .utils import get_inference_api -class ShowModelsHandler(ShowFilesHandler): +class ShowModelFilesHandler(ShowFilesHandler): """ SHOW MODEL FILES [ at_path ] [ ] @@ -75,10 +75,10 @@ def run(self, params: Dict[str, Any]) -> Optional[FusionSQLResult]: return super().run(params) -ShowModelsHandler.register(overwrite=True) +ShowModelFilesHandler.register(overwrite=True) -class UploadModelHandler(SQLHandler): +class UploadModelFileHandler(SQLHandler): """ UPLOAD MODEL FILE model_name FROM local_path [ overwrite ]; @@ -145,10 +145,10 @@ def run(self, params: Dict[str, Any]) -> Optional[FusionSQLResult]: return None -UploadModelHandler.register(overwrite=True) +UploadModelFileHandler.register(overwrite=True) -class DownloadModelHandler(SQLHandler): +class DownloadModelFileHandler(SQLHandler): """ DOWNLOAD MODEL FILE model_name [ local_path ] @@ -213,10 +213,10 @@ def run(self, params: Dict[str, Any]) -> Optional[FusionSQLResult]: return None -DownloadModelHandler.register(overwrite=True) +DownloadModelFileHandler.register(overwrite=True) -class DropModelsHandler(SQLHandler): +class DropModelFileHandler(SQLHandler): """ DROP MODEL FILE model_name; @@ -249,7 +249,7 @@ def run(self, params: Dict[str, Any]) -> Optional[FusionSQLResult]: return None -DropModelsHandler.register(overwrite=True) +DropModelFileHandler.register(overwrite=True) class StartModelHandler(SQLHandler): From 506c7663615aeaf1a01bca5fdf8e4482cf2a3b35 Mon Sep 17 00:00:00 2001 From: Mohit Verma Date: Tue, 11 Nov 2025 18:15:28 +0530 Subject: [PATCH 3/3] added CUSTOM keyword in existing model commands --- singlestoredb/fusion/handlers/models.py | 44 ++++++++++++------------- 1 file changed, 22 insertions(+), 22 deletions(-) diff --git a/singlestoredb/fusion/handlers/models.py b/singlestoredb/fusion/handlers/models.py index ff081632..a408147c 100644 --- a/singlestoredb/fusion/handlers/models.py +++ b/singlestoredb/fusion/handlers/models.py @@ -12,9 +12,9 @@ from .utils import get_inference_api -class ShowModelFilesHandler(ShowFilesHandler): +class ShowCustomModelsHandler(ShowFilesHandler): """ - SHOW MODEL FILES + SHOW CUSTOM MODELS [ at_path ] [ ] [ ] [ ] [ recursive ] [ extended ]; @@ -55,16 +55,16 @@ class ShowModelFilesHandler(ShowFilesHandler): -------- The following command lists the models:: - SHOW MODEL FILES; + SHOW CUSTOM MODELS; The following command lists the models with additional information:: - SHOW MODEL FILES EXTENDED; + SHOW CUSTOM MODELS EXTENDED; See Also -------- - * ``UPLOAD MODEL FILE model_name FROM path`` - * ``DOWNLOAD MODEL FILE model_name`` + * ``UPLOAD CUSTOM MODEL model_name FROM path`` + * ``DOWNLOAD CUSTOM MODEL model_name`` """ # noqa: E501 @@ -75,12 +75,12 @@ def run(self, params: Dict[str, Any]) -> Optional[FusionSQLResult]: return super().run(params) -ShowModelFilesHandler.register(overwrite=True) +ShowCustomModelsHandler.register(overwrite=True) -class UploadModelFileHandler(SQLHandler): +class UploadCustomModelHandler(SQLHandler): """ - UPLOAD MODEL FILE model_name + UPLOAD CUSTOM MODEL model_name FROM local_path [ overwrite ]; # Model Name @@ -112,12 +112,12 @@ class UploadModelFileHandler(SQLHandler): The following command uploads a file to models space and overwrite any existing files at the specified path:: - UPLOAD MODEL FILE model_name + UPLOAD CUSTOM MODEL model_name FROM 'llama3/' OVERWRITE; See Also -------- - * ``DOWNLOAD MODEL FILE model_name`` + * ``DOWNLOAD CUSTOM MODEL model_name`` """ # noqa: E501 @@ -145,12 +145,12 @@ def run(self, params: Dict[str, Any]) -> Optional[FusionSQLResult]: return None -UploadModelFileHandler.register(overwrite=True) +UploadCustomModelHandler.register(overwrite=True) -class DownloadModelFileHandler(SQLHandler): +class DownloadCustomModelHandler(SQLHandler): """ - DOWNLOAD MODEL FILE model_name + DOWNLOAD CUSTOM MODEL model_name [ local_path ] [ overwrite ]; @@ -184,17 +184,17 @@ class DownloadModelFileHandler(SQLHandler): The following command displays the contents of the file on the standard output:: - DOWNLOAD MODEL FILE llama3; + DOWNLOAD CUSTOM MODEL llama3; The following command downloads a model to a specific location and overwrites any existing models folder with the name ``local_llama3`` on the local storage:: - DOWNLOAD MODEL FILE llama3 + DOWNLOAD CUSTOM MODEL llama3 TO 'local_llama3' OVERWRITE; See Also -------- - * ``UPLOAD MODEL FILE model_name FROM local_path`` + * ``UPLOAD CUSTOM MODEL model_name FROM local_path`` """ # noqa: E501 @@ -213,12 +213,12 @@ def run(self, params: Dict[str, Any]) -> Optional[FusionSQLResult]: return None -DownloadModelFileHandler.register(overwrite=True) +DownloadCustomModelHandler.register(overwrite=True) -class DropModelFileHandler(SQLHandler): +class DropCustomModelHandler(SQLHandler): """ - DROP MODEL FILE model_name; + DROP CUSTOM MODEL model_name; # Model Name model_name = '' @@ -235,7 +235,7 @@ class DropModelFileHandler(SQLHandler): -------- The following commands deletes a model from a model space:: - DROP MODEL FILE llama3; + DROP CUSTOM MODEL llama3; """ # noqa: E501 @@ -249,7 +249,7 @@ def run(self, params: Dict[str, Any]) -> Optional[FusionSQLResult]: return None -DropModelFileHandler.register(overwrite=True) +DropCustomModelHandler.register(overwrite=True) class StartModelHandler(SQLHandler):