Skip to content

Conversation

@mohit-singlestore
Copy link

@mohit-singlestore mohit-singlestore commented Oct 16, 2025

This PR adds 2 new fusion commands for models

  1. START MODEL modelName
  2. STOP MODEL modelName

@kesmit13
Copy link
Collaborator

@mohit-singlestore You'll need to run the pre-commit checks as described in https://github.com/singlestore-labs/singlestoredb-python/blob/main/CONTRIBUTING.md for the checks to pass.

if self._manager is None:
raise ManagementError(msg='Manager not initialized')
res = self._manager._post(f'inferenceapis/{self.project_id}/{model_name}/start')
return res.json()
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm curious as to what sort of information is returned here. Should it be some sort of ModelStatus object returned instead of a raw decoded json object? If there is something relevant returned, it might be a good idea to create a result object in the Fusion SQL START / STOP commands that returns that information as well.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The response includes modelName, modelID, hostingPlatform, and status. I've updated it to return a proper result object instead of raw JSON. Please take a look.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants