Start fixing forecast service API

This commit is contained in:
Urtzi Alfaro
2025-07-29 13:02:42 +02:00
parent cd6fd875f7
commit dfb619a7b5
2 changed files with 13 additions and 17 deletions

View File

@@ -250,12 +250,8 @@ class ForecastingService:
# Call training service to get model information
async with httpx.AsyncClient() as client:
response = await client.get(
f"{settings.TRAINING_SERVICE_URL}/api/v1/models/latest",
params={
"tenant_id": tenant_id,
"product_name": product_name,
"location": location
},
f"{settings.TRAINING_SERVICE_URL}/tenants/{tenant_id}/models/{product_name}/active",
params={},
headers={"X-Service-Auth": settings.SERVICE_AUTH_TOKEN}
)