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

Tested locally

@mohit-singlestore mohit-singlestore changed the title fusion commands to start and stop model Add MODEL START and MODEL STOP fusion commands Oct 22, 2025
@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.

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.

2 participants