revert(dotAI): rollback LangChain4J integration (PRs #35150, #35445, #35456)#35494
Conversation
|
Claude finished @ihoffmann-dot's task in 2m 42s —— View job PR Review
Issues FoundBug — When // Current
Optional.ofNullable(host).ifPresent(found -> AIModels.get().resetModels(found.getHostname()));
final AppConfig appConfig = ConfigService.INSTANCE.config(host); // silently uses system host when host == null
// Should be
if (host == null) { return; }
AIModels.get().resetModels(host.getHostname());
final AppConfig appConfig = ConfigService.INSTANCE.config(host);Bug — return Stream.of(apiUrl, apiImageUrl, apiEmbeddingsUrl, apiKey).allMatch(StringUtils::isNotBlank);This requires all four fields — including Bug — } else if (event.getKey().contains(AI_MODELS_FETCH_TIMEOUT_KEY)) {
modelsFetchTimeout.set(Config.getIntProperty(AI_MODELS_FETCH_TIMEOUT_KEY, 14)); // wrongUses Info leak — for (final AppKeys config : AppKeys.values()) {
map.put(config.key, appConfig.getConfig(config));
}This iterates every Dead / mismatched constants —
AI_MODELS_CACHE_TTL("com.dotcms.ai.models.supported.ttl", "28800"),
AI_MODELS_CACHE_SIZE("com.dotcms.ai.models.supported.size", "64");
private static final int AI_MODELS_CACHE_TTL = 28800;
private static final int AI_MODELS_CACHE_SIZE = 256;The Silent breakage — sites configured under LangChain4J schema Sites that stored Minor — " model=" + model + "',\n" + // was: " model='" + model + "',\n"
" imageModel=" + imageModel + "',\n" +
" embeddingsModel=" + embeddingsModel + "',\n" +Opening single-quote is missing, producing malformed
|
|
Pull Request Unsafe to Rollback!!! Category: M-3 — REST / GraphQL / Headless API Contract Change
Alternative (if possible): To minimize breakage, keep the |
Summary
Reverts the LangChain4J integration and related changes merged in:
Restores dotAI to the state at tag
v26.04.28-01prior to those merges.Test plan