feat(dotAI): Dot AI LangChain4J - Anthropic#36138
Conversation
|
Claude finished @ihoffmann-dot's task in 3m 5s —— View job I'll analyze this and get back to you. |
| @@ -535,6 +535,11 @@ | |||
| <groupId>dev.langchain4j</groupId> | |||
There was a problem hiding this comment.
🔴 [Critical] Dependency added to wrong POM file
The langchain4j-anthropic dependency is added directly to dotCMS/pom.xml (lines 535-540) instead of bom/application/pom.xml. This violates dotCMS's convention where dependency versions should be managed via the BOM (Bill of Materials) in bom/application/pom.xml for centralized version control. Evidence: grep of bom/application/pom.xml shows other langchain4j dependencies (like langchain4j and langchain4j-openai) are declared there with versions inherited from the BOM, while this new dependency bypasses that system.
…nrouter providers
🤖 dotBot Review (Bedrock)Reviewed 5 file(s); 3 candidate(s) → 1 confirmed, 0 uncertain (unverified, kept for review). Confirmed findings
us.deepseek.r1-v1:0 · Run: #28609333946 · tokens: in: 25286 · out: 6507 · total: 31793 · calls: 10 · est. ~$0.069 |
Summary
Adds Anthropic as a supported provider, talking directly to the Anthropic Messages
API with an API key — distinct from accessing Claude models through AWS Bedrock,
which requires AWS infrastructure and IAM credentials.
langchain4j-anthropicdependency (version via langchain4j BOM)AnthropicModelProviderStrategyregistered inLangChain4jModelFactory.STRATEGIESAnthropicChatModel/AnthropicStreamingChatModelUnsupportedOperationException(Anthropic has no such APIs)endpointconfig field overrides the default base URL (proxies/gateways)LangChain4jModelFactoryTestConfiguration
{ "chat": { "provider": "anthropic", "model": "claude-sonnet-4-6", "apiKey": "sk-ant-...", "maxTokens": 4096, "temperature": 0.7 } }Notes
claude-sonnet-4-6,claude-opus-4-8,claude-haiku-4-5.maxRetriesis not supported by the streaming chat model and is ignored with a warning (same behavior as the OpenAI provider).Related Issue
This PR fixes #36135
EPIC: dotAI Multi-Provider Support #33970