Fix new services implementation 5
This commit is contained in:
@@ -89,13 +89,13 @@ class TrainingServiceClient(BaseServiceClient):
|
||||
async def get_active_model_for_product(
|
||||
self,
|
||||
tenant_id: str,
|
||||
product_name: str
|
||||
inventory_product_id: str
|
||||
) -> Optional[Dict[str, Any]]:
|
||||
"""
|
||||
Get the active model for a specific product
|
||||
Get the active model for a specific product by inventory product ID
|
||||
This is the preferred method since models are stored per product.
|
||||
"""
|
||||
result = await self.get(f"models/{product_name}/active", tenant_id=tenant_id)
|
||||
result = await self.get(f"models/{inventory_product_id}/active", tenant_id=tenant_id)
|
||||
return result
|
||||
|
||||
async def deploy_model(self, tenant_id: str, model_id: str) -> Optional[Dict[str, Any]]:
|
||||
|
||||
Reference in New Issue
Block a user