Skip to content

Commit 0284b2b

Browse files
changes
1 parent 113d890 commit 0284b2b

File tree

2 files changed

+11
-11
lines changed

2 files changed

+11
-11
lines changed

singlestoredb/fusion/handlers/models.py

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -349,9 +349,9 @@ def run(self, params: Dict[str, Any]) -> Optional[FusionSQLResult]:
349349
StopModelHandler.register(overwrite=True)
350350

351351

352-
class ShowInferenceAPIsHandler(SQLHandler):
352+
class ShowModelsHandler(SQLHandler):
353353
"""
354-
SHOW INFERENCE APIS ;
354+
SHOW MODELS ;
355355
356356
Description
357357
-----------
@@ -361,13 +361,13 @@ class ShowInferenceAPIsHandler(SQLHandler):
361361
--------
362362
The following command lists all inference APIs::
363363
364-
SHOW INFERENCE APIS;
364+
SHOW MODELS;
365365
366366
See Also
367367
--------
368368
* ``START MODEL model_name``
369369
* ``STOP MODEL model_name``
370-
* ``DROP INFERENCE API model_name``
370+
* ``DROP MODEL model_name``
371371
372372
""" # noqa: E501
373373

@@ -390,12 +390,12 @@ def run(self, params: Dict[str, Any]) -> Optional[FusionSQLResult]:
390390
return res
391391

392392

393-
ShowInferenceAPIsHandler.register(overwrite=True)
393+
ShowModelsHandler.register(overwrite=True)
394394

395395

396-
class DropInferenceAPIHandler(SQLHandler):
396+
class DropModelHandler(SQLHandler):
397397
"""
398-
DROP INFERENCE API model_name ;
398+
DROP MODEL model_name ;
399399
400400
# Model Name
401401
model_name = '<model-name>'
@@ -412,13 +412,13 @@ class DropInferenceAPIHandler(SQLHandler):
412412
--------
413413
The following command drops an inference API::
414414
415-
DROP INFERENCE API my_model;
415+
DROP MODEL my_model;
416416
417417
See Also
418418
--------
419419
* ``START MODEL model_name``
420420
* ``STOP MODEL model_name``
421-
* ``SHOW INFERENCE APIS``
421+
* ``SHOW MODELS``
422422
423423
""" # noqa: E501
424424

@@ -439,4 +439,4 @@ def run(self, params: Dict[str, Any]) -> Optional[FusionSQLResult]:
439439
return res
440440

441441

442-
DropInferenceAPIHandler.register(overwrite=True)
442+
DropModelHandler.register(overwrite=True)

singlestoredb/management/inference_api.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -353,5 +353,5 @@ def drop(self, model_name: str) -> ModelOperationResult:
353353
"""
354354
if self._manager is None:
355355
raise ManagementError(msg='Manager not initialized')
356-
res = self._manager._delete(f'models/{model_name}/drop')
356+
res = self._manager._delete(f'models/{model_name}')
357357
return ModelOperationResult.from_drop_response(res.json())

0 commit comments

Comments
 (0)