feat(dotAI): Dot AI LangChain4J - Anthropic#36138
Conversation
|
Claude finished @ihoffmann-dot's task in 36s —— View job I'll analyze this and get back to you. |
…nrouter providers
🤖 dotBot Review (Bedrock)Reviewed 5 file(s); 3 candidate(s) → 3 confirmed, 0 uncertain (unverified, kept for review). Confirmed findings
us.deepseek.r1-v1:0 · Run: #28672626375 · tokens: in: 35391 · out: 9608 · total: 44999 · calls: 14 · est. ~$0.100 |
|
Queued — the merge queue status continues in this comment ↓. |
Merge Queue Status
This pull request spent 3 minutes 52 seconds in the queue, including 3 minutes 34 seconds running CI. Waiting for any of
All conditions
ReasonThe merge conditions cannot be satisfied due to failing checks
Failing checks: HintYou may have to fix your CI before adding the pull request to the queue again. Tick the box to put this pull request back in the merge queue (same as
|
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