Start fixing forecast service API 9
This commit is contained in:
@@ -251,7 +251,7 @@ class ForecastingService:
|
||||
# Pass the product_name to the model client
|
||||
model_data = await self.model_client.get_best_model_for_forecasting(
|
||||
tenant_id=tenant_id,
|
||||
product_name=product_name # Make sure to pass product_name
|
||||
product_id=product_name # Make sure to pass product_name
|
||||
)
|
||||
return model_data
|
||||
except Exception as e:
|
||||
|
||||
@@ -66,7 +66,6 @@ class ModelClient:
|
||||
# Get latest model
|
||||
latest_model = await self.clients.training.get_active_model_for_product(
|
||||
tenant_id=tenant_id,
|
||||
model_type="forecasting",
|
||||
product_name=product_id
|
||||
)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user