Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .release-please-manifest.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
".": "2.40.0"
".": "2.40.1"
}
4 changes: 2 additions & 2 deletions .stats.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
configured_endpoints: 116
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/anthropic/anthropic-3368ac7f3ae66514b5e46832c85918a6ea36e95c0efe98e0955c4455dd57a6b8.yml
openapi_spec_hash: 255cf18e4e19ab1ab5cdc52717abe558
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/anthropic/anthropic-5ce93251152bd7c4c288dacdf5a445383825ba50bc472ff9e9821ee9455e3564.yml
openapi_spec_hash: 989d596f7660ce55a7cea748a9292b45
config_hash: 44acd8a997dff056931fb4466201cdeb
9 changes: 9 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,14 @@
# Changelog

## 2.40.1 (2026-06-09)

Full Changelog: [v2.40.0...v2.40.1](https://github.com/anthropics/anthropic-sdk-java/compare/v2.40.0...v2.40.1)

### Bug Fixes

* **api:** add `frontier_llm` refusal category ([1627fd3](https://github.com/anthropics/anthropic-sdk-java/commit/1627fd3561cb8594d81e9e384e1191faf27d53d3))
* **client:** bad `toParam` conversion ([e3b5adb](https://github.com/anthropics/anthropic-sdk-java/commit/e3b5adbc64eed075f802082a647b6cb1fd055ac9))

## 2.40.0 (2026-06-09)

Full Changelog: [v2.39.0...v2.40.0](https://github.com/anthropics/anthropic-sdk-java/compare/v2.39.0...v2.40.0)
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ Full documentation is available at **[platform.claude.com/docs/en/api/sdks/java]
### Gradle

```kotlin
implementation("com.anthropic:anthropic-java:2.40.0")
implementation("com.anthropic:anthropic-java:2.40.1")
```

### Maven
Expand All @@ -24,7 +24,7 @@ implementation("com.anthropic:anthropic-java:2.40.0")
<dependency>
<groupId>com.anthropic</groupId>
<artifactId>anthropic-java</artifactId>
<version>2.40.0</version>
<version>2.40.1</version>
</dependency>
```

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -526,6 +526,8 @@ private constructor(

@JvmField val BIO = of("bio")

@JvmField val FRONTIER_LLM = of("frontier_llm")

@JvmField val REASONING_EXTRACTION = of("reasoning_extraction")

@JvmStatic fun of(value: String) = Category(JsonField.of(value))
Expand All @@ -535,6 +537,7 @@ private constructor(
enum class Known {
CYBER,
BIO,
FRONTIER_LLM,
REASONING_EXTRACTION,
}

Expand All @@ -550,6 +553,7 @@ private constructor(
enum class Value {
CYBER,
BIO,
FRONTIER_LLM,
REASONING_EXTRACTION,
/** An enum member indicating that [Category] was instantiated with an unknown value. */
_UNKNOWN,
Expand All @@ -566,6 +570,7 @@ private constructor(
when (this) {
CYBER -> Value.CYBER
BIO -> Value.BIO
FRONTIER_LLM -> Value.FRONTIER_LLM
REASONING_EXTRACTION -> Value.REASONING_EXTRACTION
else -> Value._UNKNOWN
}
Expand All @@ -583,6 +588,7 @@ private constructor(
when (this) {
CYBER -> Known.CYBER
BIO -> Known.BIO
FRONTIER_LLM -> Known.FRONTIER_LLM
REASONING_EXTRACTION -> Known.REASONING_EXTRACTION
else -> throw AnthropicInvalidDataException("Unknown Category: $value")
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -286,6 +286,8 @@ private constructor(

@JvmField val BIO = of("bio")

@JvmField val FRONTIER_LLM = of("frontier_llm")

@JvmField val REASONING_EXTRACTION = of("reasoning_extraction")

@JvmStatic fun of(value: String) = Category(JsonField.of(value))
Expand All @@ -295,6 +297,7 @@ private constructor(
enum class Known {
CYBER,
BIO,
FRONTIER_LLM,
REASONING_EXTRACTION,
}

Expand All @@ -310,6 +313,7 @@ private constructor(
enum class Value {
CYBER,
BIO,
FRONTIER_LLM,
REASONING_EXTRACTION,
/** An enum member indicating that [Category] was instantiated with an unknown value. */
_UNKNOWN,
Expand All @@ -326,6 +330,7 @@ private constructor(
when (this) {
CYBER -> Value.CYBER
BIO -> Value.BIO
FRONTIER_LLM -> Value.FRONTIER_LLM
REASONING_EXTRACTION -> Value.REASONING_EXTRACTION
else -> Value._UNKNOWN
}
Expand All @@ -343,6 +348,7 @@ private constructor(
when (this) {
CYBER -> Known.CYBER
BIO -> Known.BIO
FRONTIER_LLM -> Known.FRONTIER_LLM
REASONING_EXTRACTION -> Known.REASONING_EXTRACTION
else -> throw AnthropicInvalidDataException("Unknown Category: $value")
}
Expand Down
2 changes: 1 addition & 1 deletion build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ repositories {

allprojects {
group = "com.anthropic"
version = "2.40.0" // x-release-please-version
version = "2.40.1" // x-release-please-version
}

subprojects {
Expand Down
Loading