feat(anthropic): add support for claude-opus-4 and claude-sonnet-4 (#3351)

* feat(anthropic): add support for claude-opus-4-0 and claude-sonnet-4-0 models

- Introduce `CLAUDE_OPUS_4` and `CLAUDE_SONNET_4` to `ChatModel` enum
- Update documentation to include new model options

Signed-off-by: Alexandros Pappas <apappascs@gmail.com>

* add model aliases url to anthropic documentation

Signed-off-by: Alexandros Pappas <apappascs@gmail.com>

---------

Signed-off-by: Alexandros Pappas <apappascs@gmail.com>
This commit is contained in:
Alexandros Pappas
2025-05-30 12:32:26 +02:00
committed by Ilayaperumal Gopinathan
parent be79b892a5
commit b34dcbf0c7
2 changed files with 15 additions and 3 deletions

View File

@@ -241,6 +241,16 @@ public final class AnthropicApi {
public enum ChatModel implements ChatModelDescription {
// @formatter:off
/**
* The claude-opus-4-0 model.
*/
CLAUDE_OPUS_4("claude-opus-4-0"),
/**
* The claude-sonnet-4-0 model.
*/
CLAUDE_SONNET_4("claude-sonnet-4-0"),
/**
* The claude-3-7-sonnet-latest model.
*/