This commit is contained in:
2025-12-17 09:38:49 +01:00
parent 49630cbf41
commit 09113ee3f3

View File

@@ -110,19 +110,19 @@ public class ChromaWarmupService {
boolean success = true;
try {
// 1. Health check
String healthUrl = chromaHost + ":" + chromaPort + "/api/v1/heartbeat";
// 1. Health check (updated to v2 API)
String healthUrl = chromaHost + ":" + chromaPort + "/api/v2/heartbeat";
restTemplate.getForObject(healthUrl, String.class);
logger.debug("Heartbeat successful");
// 2. Lista collezioni (operazione più pesante)
String collectionsUrl = chromaHost + ":" + chromaPort + "/api/v1/collections";
// 2. Lista collezioni (operazione più pesante, updated to v2 API)
String collectionsUrl = chromaHost + ":" + chromaPort + "/api/v2/collections";
restTemplate.getForObject(collectionsUrl, String.class);
logger.debug("Collections list successful");
// 3. Prova a contare elementi nella collezione principale
try {
String countUrl = chromaHost + ":" + chromaPort + "/api/v1/collections/" + collectionName + "/count";
String countUrl = chromaHost + ":" + chromaPort + "/api/v2/collections/" + collectionName + "/count";
restTemplate.getForObject(countUrl, String.class);
logger.debug("Collection count successful");
} catch (Exception e) {