Skip to content

Commit ed25278

Browse files
debug issue commit
1 parent 5db5f53 commit ed25278

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

singlestoredb/management/inference_api.py

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ def from_start_response(cls, response: Dict[str, Any]) -> 'ModelOperationResult'
5050
5151
"""
5252
return cls(
53-
name=response.get('modelName', ''),
53+
name=response.get('modelID', ''),
5454
status='Initializing',
5555
hosting_platform=response.get('hostingPlatform', ''),
5656
)
@@ -86,7 +86,7 @@ def get_message(self) -> str:
8686
Message describing the operation result
8787
8888
"""
89-
return f"Model '{self.name}' status is now {self.status}"
89+
return f"Model is {self.status}"
9090

9191
def __str__(self) -> str:
9292
"""Return string representation."""
@@ -262,4 +262,8 @@ def stop(self, model_name: str) -> ModelOperationResult:
262262
if self._manager is None:
263263
raise ManagementError(msg='Manager not initialized')
264264
res = self._manager._post(f'inferenceapis/{model_name}/stop')
265-
return ModelOperationResult.from_stop_response(res.json())
265+
response_data = res.json()
266+
# Debug: print the actual response to see what we're getting
267+
import json
268+
print(f"DEBUG - Stop response: {json.dumps(response_data, indent=2, default=str)}")
269+
return ModelOperationResult.from_stop_response(response_data)

0 commit comments

Comments
 (0)