Skip to content

feat(dotAI): upgrade LangChain4j to 1.15.1 and enable Azure gpt-image-1 support#35917

Open
ihoffmann-dot wants to merge 2 commits into
mainfrom
dot-ai-langchain-bump
Open

feat(dotAI): upgrade LangChain4j to 1.15.1 and enable Azure gpt-image-1 support#35917
ihoffmann-dot wants to merge 2 commits into
mainfrom
dot-ai-langchain-bump

Conversation

@ihoffmann-dot
Copy link
Copy Markdown
Member

@ihoffmann-dot ihoffmann-dot commented Jun 3, 2026

Summary

  • Bump langchain4j.version from 1.0.0 to 1.15.1 in bom/application/pom.xml
  • Add langchain4j-open-ai-official dependency to dotCMS/pom.xml
  • Replace deprecated AzureOpenAiImageModel with OpenAiOfficialImageModel (Microsoft Foundry) in AzureOpenAiModelProviderStrategy — enables gpt-image-1 on Azure
  • Fix VertexAiModelProviderStrategy imports: Gemini classes moved to dev.langchain4j.model.vertexai.gemini in 1.15.1

Notes

  • AzureOpenAiImageModel only supported dall-e-3, which Azure deprecated in June 2025. OpenAiOfficialImageModel with isMicrosoftFoundry(true) is the correct replacement for Azure image generation going forward.
  • gpt-image-1 supports sizes 1024x1024, 1024x1536, 1536x1024 on Azure.
  • The apiVersion field in providerConfig.image should be 2025-04-01-preview or newer for gpt-image-1 support.
  • All other providers (OpenAI, Vertex AI) are unaffected by this change.

Related Issue

This PR fixes #35916
EPIC: dotAI Multi-Provider Support #33970

@github-actions github-actions Bot added the Area : Backend PR changes Java/Maven backend code label Jun 3, 2026
@claude
Copy link
Copy Markdown
Contributor

claude Bot commented Jun 3, 2026

Claude finished @ihoffmann-dot's task in 1m 20s —— View job


Rollback Safety Analysis

  • Gather context (PR diff, changed files)
  • Read rollback-unsafe categories reference
  • Analyze diff against unsafe categories
  • Apply label

Result: ✅ Safe To Rollback

The label AI: Safe To Rollback has been applied.

All 4 changed files are pure dependency version bumps and internal AI model provider code changes. A full scan against every rollback-unsafe category found no matches:

Category Check Result
C-1 Structural Data Model No runonce tasks, no schema migration
C-2 Elasticsearch Mapping No ES mapping code changes
C-3 Content JSON Model Version No CURRENT_MODEL_VERSION bump
C-4 DROP TABLE / DROP COLUMN No DDL drop statements
H-1 One-Way Data Migration No data transformation
H-2 RENAME TABLE / COLUMN No renames
H-3 PK Restructuring No PK changes
H-4 New Content Type Field No FieldTypeAPI registrations
H-5 Storage Provider Change No StoragePersistenceProvider changes
H-6 DROP PROCEDURE / FUNCTION No stored procedure drops
H-7 NOT NULL without default No schema changes at all
M-1 Column Type Change No DDL changes
M-2 Push Bundle Format No *Bundler.java changes
M-3 REST / GraphQL API Contract No endpoint or response shape changes
M-4 OSGi Public Interface No exported interface changes

The changes are limited to:

  • bom/application/pom.xml: LangChain4j version bump 1.0.01.15.1
  • dotCMS/pom.xml: New langchain4j-open-ai-official dependency (additive only)
  • AzureOpenAiModelProviderStrategy.java: Internal model provider swap (AzureOpenAiImageModelOpenAiOfficialImageModel) — no DB, ES, or API contract impact
  • VertexAiModelProviderStrategy.java: Import package path fix — no behavioral change

Rolling back to the previous release requires no database interaction, no Elasticsearch reindexing, and no client-side changes.

@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Jun 4, 2026

❌ Linked Issue Needs Team Label

This PR is linked to issue #35916, but that issue has no Team : * label. Every linked issue must be owned by a team for tracking and triage.

How to fix this:

Apply a Team : * label to the linked issue (e.g., Team : Scout, Team : Platform, Team : Falcon, Team : Maintenance). Then push a new commit or edit the PR description to re-run this check.


This comment was automatically generated by the issue linking workflow

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

Status: No status

Development

Successfully merging this pull request may close these issues.

[IMPROVEMENT] dotAI: upgrade LangChain4j to 1.15.1 and fix Azure image generation with gpt-image-1

1 participant