feat(dotAI): Caffeine cache migration and free-text image size input#35844
Open
ihoffmann-dot wants to merge 5 commits into
Open
feat(dotAI): Caffeine cache migration and free-text image size input#35844ihoffmann-dot wants to merge 5 commits into
ihoffmann-dot wants to merge 5 commits into
Conversation
Contributor
|
Claude finished @ihoffmann-dot's task in 2m 56s —— View job PR ReviewTwo minor concerns and a few things worth a second look — nothing blocking. Caffeine migration (
|
5 tasks
…ype gallery input, add size validation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Two minor improvements to the LangChain4J AI integration.
Caffeine cache migration
CacheBuilder/Cachewith Caffeine equivalents inLangChain4jAIClientexecuteWithFallback— each is now caught, logged, and handled independently (init failure usescontinue, execution failure falls through to next model)ExecutionException,UncheckedExecutionExceptionimports — no longer needed since Caffeine propagates loader exceptions directlyFree-text image size input
p-selectorientation dropdown inAiImagePromptFormComponentwith apInputTextfield, defaulting to1024x1024sizefield in the dotAI portlet Image Playground JSP with a visible text inputAIImagePrompt.sizetype fromDotAIImageOrientationtostringblock-editor.extension.ai-image.size=SizetoLanguage.propertiesNotes
DotAIImageOrientationenum is retained — still used in gallery component and stores as named string constants. Only removed from the form component.s1024x1024,s1792x1024,s1024x1792) still work for the three common sizes. Custom sizes will fall back to the generic placeholder style.AIAppListenerstill callsflushCachesForHostviaAppSecretSavedEvent.Related Issue
This PR fixes #35843
EPIC: dotAI Multi-Provider Support #33970