Skip to content

Commit b531991

Browse files
rename model commands
1 parent f0648d6 commit b531991

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
@@ -12,7 +12,7 @@
1212

1313
class ShowModelsHandler(ShowFilesHandler):
1414
"""
15-
SHOW MODELS
15+
SHOW MODEL FILES
1616
[ at_path ] [ <like> ]
1717
[ <order-by> ]
1818
[ <limit> ] [ recursive ] [ extended ];
@@ -53,16 +53,16 @@ class ShowModelsHandler(ShowFilesHandler):
5353
--------
5454
The following command lists the models::
5555
56-
SHOW MODELS;
56+
SHOW MODEL FILES;
5757
5858
The following command lists the models with additional information::
5959
60-
SHOW MODELS EXTENDED;
60+
SHOW MODEL FILES EXTENDED;
6161
6262
See Also
6363
--------
64-
* ``UPLOAD MODEL model_name FROM path``
65-
* ``DOWNLOAD MODEL model_name``
64+
* ``UPLOAD MODEL FILE model_name FROM path``
65+
* ``DOWNLOAD MODEL FILE model_name``
6666
6767
6868
""" # noqa: E501
@@ -78,7 +78,7 @@ def run(self, params: Dict[str, Any]) -> Optional[FusionSQLResult]:
7878

7979
class UploadModelHandler(SQLHandler):
8080
"""
81-
UPLOAD MODEL model_name
81+
UPLOAD MODEL FILE model_name
8282
FROM local_path [ overwrite ];
8383
8484
# Model Name
@@ -110,12 +110,12 @@ class UploadModelHandler(SQLHandler):
110110
The following command uploads a file to models space and overwrite any
111111
existing files at the specified path::
112112
113-
UPLOAD MODEL model_name
113+
UPLOAD MODEL FILE model_name
114114
FROM 'llama3/' OVERWRITE;
115115
116116
See Also
117117
--------
118-
* ``DOWNLOAD MODEL model_name``
118+
* ``DOWNLOAD MODEL FILE model_name``
119119
120120
""" # noqa: E501
121121

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

149149
class DownloadModelHandler(SQLHandler):
150150
"""
151-
DOWNLOAD MODEL model_name
151+
DOWNLOAD MODEL FILE model_name
152152
[ local_path ]
153153
[ overwrite ];
154154
@@ -182,17 +182,17 @@ class DownloadModelHandler(SQLHandler):
182182
The following command displays the contents of the file on the
183183
standard output::
184184
185-
DOWNLOAD MODEL llama3;
185+
DOWNLOAD MODEL FILE llama3;
186186
187187
The following command downloads a model to a specific location and
188188
overwrites any existing models folder with the name ``local_llama3`` on the local storage::
189189
190-
DOWNLOAD MODEL llama3
190+
DOWNLOAD MODEL FILE llama3
191191
TO 'local_llama3' OVERWRITE;
192192
193193
See Also
194194
--------
195-
* ``UPLOAD MODEL model_name FROM local_path``
195+
* ``UPLOAD MODEL FILE model_name FROM local_path``
196196
197197
""" # noqa: E501
198198

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

217217
class DropModelsHandler(SQLHandler):
218218
"""
219-
DROP MODEL model_name;
219+
DROP MODEL FILE model_name;
220220
221221
# Model Name
222222
model_name = '<model-name>'
@@ -233,7 +233,7 @@ class DropModelsHandler(SQLHandler):
233233
--------
234234
The following commands deletes a model from a model space::
235235
236-
DROP MODEL llama3;
236+
DROP MODEL FILE llama3;
237237
238238
""" # noqa: E501
239239

0 commit comments

Comments
 (0)