feat(dotAI): Dot AI LangChain4J - Google Vertex#35241
feat(dotAI): Dot AI LangChain4J - Google Vertex#35241ihoffmann-dot wants to merge 7 commits intodot-ai-langchain-amazon-bedrockfrom
Conversation
❌ Issue Linking RequiredThis PR could not be linked to an issue. All PRs must be linked to an issue for tracking purposes. How to fix this:Option 1: Add keyword to PR body (Recommended - auto-removes this comment)
Why is this required?Issue linking ensures proper tracking, documentation, and helps maintain project history. It connects your code changes to the problem they solve.--- This comment was automatically generated by the issue linking workflow |
|
Claude finished @ihoffmann-dot's task in 1m 57s —— View job PR Review: feat(dotAI): Dot AI LangChain4J - Google Vertex
Issues1. Unit test likely fails in CI — ADC initialized at build time
The parallel tests for OpenAI pass fake keys and succeed because OpenAI is lazy. Bedrock passes because Fix: Either mock the builder or expect the test to throw an exception related to credential loading rather than asserting 2.
3. Misleading exception for unsupported operations when required fields are absent When a caller configures Consider checking for unsupported operations first in Minor notes
|
Summary
Adds Google Vertex AI (Gemini) as a supported chat provider.
Auth is handled via Application Default Credentials — no API key required.
langchain4j-vertex-ai-geminidependency (with enforcer exclusions)vertex_aicase toLangChain4jModelFactoryswitchbuildVertexAiChatModelusingVertexAiGeminiChatModelbuildVertexAiEmbeddingModelandbuildVertexAiImageModelthrowUnsupportedOperationExceptionLangChain4jModelFactoryTestConfiguration
{ "chat": { "provider": "vertex_ai", "projectId": "my-gcp-project", "location": "us-central1", "model": "gemini-1.5-pro", "maxTokens": 8192, "temperature": 1.0 } }Notes
gcloud auth application-default loginor a service account attached to the instance).UnsupportedOperationException.org.checkerframework:checker-qual,com.google.android:annotations) are explicitly excluded from thelangchain4j-vertex-ai-geminidependency.Related Issue
This PR fixes #35183
EPIC: dotAI Multi-Provider Support #33970