Skip to content

Commit 0021607

Browse files
added CUSTOM keyword in existing model commands
1 parent 0e65c80 commit 0021607

File tree

1 file changed

+22
-22
lines changed

1 file changed

+22
-22
lines changed

singlestoredb/fusion/handlers/models.py

Lines changed: 22 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,9 @@
1010
from .utils import get_file_space
1111

1212

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

7575

76-
ShowModelFilesHandler.register(overwrite=True)
76+
ShowCustomModelsHandler.register(overwrite=True)
7777

7878

79-
class UploadModelFileHandler(SQLHandler):
79+
class UploadCustomModelHandler(SQLHandler):
8080
"""
81-
UPLOAD MODEL FILE model_name
81+
UPLOAD CUSTOM MODEL model_name
8282
FROM local_path [ overwrite ];
8383
8484
# Model Name
@@ -110,12 +110,12 @@ class UploadModelFileHandler(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 FILE model_name
113+
UPLOAD CUSTOM MODEL model_name
114114
FROM 'llama3/' OVERWRITE;
115115
116116
See Also
117117
--------
118-
* ``DOWNLOAD MODEL FILE model_name``
118+
* ``DOWNLOAD CUSTOM MODEL model_name``
119119
120120
""" # noqa: E501
121121

@@ -143,12 +143,12 @@ def run(self, params: Dict[str, Any]) -> Optional[FusionSQLResult]:
143143
return None
144144

145145

146-
UploadModelFileHandler.register(overwrite=True)
146+
UploadCustomModelHandler.register(overwrite=True)
147147

148148

149-
class DownloadModelFileHandler(SQLHandler):
149+
class DownloadCustomModelHandler(SQLHandler):
150150
"""
151-
DOWNLOAD MODEL FILE model_name
151+
DOWNLOAD CUSTOM MODEL model_name
152152
[ local_path ]
153153
[ overwrite ];
154154
@@ -182,17 +182,17 @@ class DownloadModelFileHandler(SQLHandler):
182182
The following command displays the contents of the file on the
183183
standard output::
184184
185-
DOWNLOAD MODEL FILE llama3;
185+
DOWNLOAD CUSTOM MODEL 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 FILE llama3
190+
DOWNLOAD CUSTOM MODEL llama3
191191
TO 'local_llama3' OVERWRITE;
192192
193193
See Also
194194
--------
195-
* ``UPLOAD MODEL FILE model_name FROM local_path``
195+
* ``UPLOAD CUSTOM MODEL model_name FROM local_path``
196196
197197
""" # noqa: E501
198198

@@ -211,12 +211,12 @@ def run(self, params: Dict[str, Any]) -> Optional[FusionSQLResult]:
211211
return None
212212

213213

214-
DownloadModelFileHandler.register(overwrite=True)
214+
DownloadCustomModelHandler.register(overwrite=True)
215215

216216

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

@@ -247,4 +247,4 @@ def run(self, params: Dict[str, Any]) -> Optional[FusionSQLResult]:
247247
return None
248248

249249

250-
DropModelFileHandler.register(overwrite=True)
250+
DropCustomModelHandler.register(overwrite=True)

0 commit comments

Comments
 (0)