Start fixing forecast service API 9

This commit is contained in:
Urtzi Alfaro
2025-07-29 18:27:41 +02:00
parent 322f1743eb
commit 2a1aec95bc
2 changed files with 1 additions and 2 deletions

View File

@@ -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:

View File

@@ -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
)