Skip to content

Commit c4cb8ec

Browse files
rename model commands
1 parent 1abb404 commit c4cb8ec

File tree

1 file changed

+14
-14
lines changed

1 file changed

+14
-14
lines changed

singlestoredb/fusion/handlers/models.py

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414

1515
class ShowModelsHandler(ShowFilesHandler):
1616
"""
17-
SHOW MODELS
17+
SHOW MODEL FILES
1818
[ at_path ] [ <like> ]
1919
[ <order-by> ]
2020
[ <limit> ] [ recursive ] [ extended ];
@@ -55,16 +55,16 @@ class ShowModelsHandler(ShowFilesHandler):
5555
--------
5656
The following command lists the models::
5757
58-
SHOW MODELS;
58+
SHOW MODEL FILES;
5959
6060
The following command lists the models with additional information::
6161
62-
SHOW MODELS EXTENDED;
62+
SHOW MODEL FILES EXTENDED;
6363
6464
See Also
6565
--------
66-
* ``UPLOAD MODEL model_name FROM path``
67-
* ``DOWNLOAD MODEL model_name``
66+
* ``UPLOAD MODEL FILE model_name FROM path``
67+
* ``DOWNLOAD MODEL FILE model_name``
6868
6969
7070
""" # noqa: E501
@@ -80,7 +80,7 @@ def run(self, params: Dict[str, Any]) -> Optional[FusionSQLResult]:
8080

8181
class UploadModelHandler(SQLHandler):
8282
"""
83-
UPLOAD MODEL model_name
83+
UPLOAD MODEL FILE model_name
8484
FROM local_path [ overwrite ];
8585
8686
# Model Name
@@ -112,12 +112,12 @@ class UploadModelHandler(SQLHandler):
112112
The following command uploads a file to models space and overwrite any
113113
existing files at the specified path::
114114
115-
UPLOAD MODEL model_name
115+
UPLOAD MODEL FILE model_name
116116
FROM 'llama3/' OVERWRITE;
117117
118118
See Also
119119
--------
120-
* ``DOWNLOAD MODEL model_name``
120+
* ``DOWNLOAD MODEL FILE model_name``
121121
122122
""" # noqa: E501
123123

@@ -150,7 +150,7 @@ def run(self, params: Dict[str, Any]) -> Optional[FusionSQLResult]:
150150

151151
class DownloadModelHandler(SQLHandler):
152152
"""
153-
DOWNLOAD MODEL model_name
153+
DOWNLOAD MODEL FILE model_name
154154
[ local_path ]
155155
[ overwrite ];
156156
@@ -184,17 +184,17 @@ class DownloadModelHandler(SQLHandler):
184184
The following command displays the contents of the file on the
185185
standard output::
186186
187-
DOWNLOAD MODEL llama3;
187+
DOWNLOAD MODEL FILE llama3;
188188
189189
The following command downloads a model to a specific location and
190190
overwrites any existing models folder with the name ``local_llama3`` on the local storage::
191191
192-
DOWNLOAD MODEL llama3
192+
DOWNLOAD MODEL FILE llama3
193193
TO 'local_llama3' OVERWRITE;
194194
195195
See Also
196196
--------
197-
* ``UPLOAD MODEL model_name FROM local_path``
197+
* ``UPLOAD MODEL FILE model_name FROM local_path``
198198
199199
""" # noqa: E501
200200

@@ -218,7 +218,7 @@ def run(self, params: Dict[str, Any]) -> Optional[FusionSQLResult]:
218218

219219
class DropModelsHandler(SQLHandler):
220220
"""
221-
DROP MODEL model_name;
221+
DROP MODEL FILE model_name;
222222
223223
# Model Name
224224
model_name = '<model-name>'
@@ -235,7 +235,7 @@ class DropModelsHandler(SQLHandler):
235235
--------
236236
The following commands deletes a model from a model space::
237237
238-
DROP MODEL llama3;
238+
DROP MODEL FILE llama3;
239239
240240
""" # noqa: E501
241241

0 commit comments

Comments
 (0)