Skip to content
Merged
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 .fern/metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,5 @@
"originGitCommit": "d228f82e93aaa8aa77f978d458cf912f3daaa8c1",
"originGitCommitIsDirty": true,
"invokedBy": "manual",
"sdkVersion": "0.4.1"
"sdkVersion": "0.5.0"
}
2 changes: 1 addition & 1 deletion .github/.release-please-manifest.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
".": "0.4.0"
".": "0.5.0"
}
16 changes: 16 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,21 @@
# Changelog

## [0.5.0](https://github.com/deepgram/deepgram-java-sdk/compare/v0.4.0...v0.5.0) (2026-05-18)


### ⚠ BREAKING CHANGES

* **`Environment` constructor signature changed (3-arg β†’ 4-arg)** ([#57](https://github.com/deepgram/deepgram-java-sdk/issues/57), [#59](https://github.com/deepgram/deepgram-java-sdk/issues/59)). A new `agentRest` slot was added with a `getAgentRestURL()` getter and `Environment.Builder#agentRest(...)` method. `Environment.AGENT` was dropped in favor of the dedicated `agentRest` REST host. Callers building a custom `Environment` via `Environment.custom()...` must add the new `agentRest(...)` builder call.
* **Listen-provider wrapper types deleted** ([#57](https://github.com/deepgram/deepgram-java-sdk/issues/57)). `AgentV1SettingsAgentContextListenProvider{V1, V2, V2LanguageHint}` and `AgentV1SettingsAgentListenProvider{V1, V2}` were removed in favor of the canonical top-level types `DeepgramListenProviderV1`, `DeepgramListenProviderV2`, and `DeepgramListenProviderV2LanguageHint`. The sealed-type wrappers `AgentV1SettingsAgentContextListenProvider` and `AgentV1SettingsAgentListenProvider` remain.

### Features

* **Diarization v2 batch GA** ([#57](https://github.com/deepgram/deepgram-java-sdk/issues/57)) ([fccb3e3](https://github.com/deepgram/deepgram-java-sdk/commit/fccb3e314bdab92b97af790d69e32c18697fb8ba)). New listen/media request types `ListenV1RequestUrl`, `MediaTranscribeRequestOctetStream`, and `MediaTranscribeRequestDiarizeModel`. `AsyncRawMediaClient` and `RawMediaClient` updated to surface the new diarize-model and octet-stream request paths.

### Bug Fixes

* **Route `agent.v1.settings.think.models.list()` to `env.agentRest`** ([#59](https://github.com/deepgram/deepgram-java-sdk/issues/59)) ([f6fd3af](https://github.com/deepgram/deepgram-java-sdk/commit/f6fd3af8d9ac6bbbbbcf5f12813b3045fcb8fbdb)). `RawModelsClient` and `AsyncRawModelsClient` now resolve their base URL via `environment().getAgentRestURL()` instead of `getAgentURL()`. The endpoint was previously broken for any caller; this is a corrective fix paired with the `Environment` breaking change above.

## [0.4.0](https://github.com/deepgram/deepgram-java-sdk/compare/v0.3.0...v0.4.0) (2026-05-06)


Expand Down
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ Add the dependency to your `build.gradle`:

```groovy
dependencies {
implementation 'com.deepgram:deepgram-java-sdk:0.4.0' // x-release-please-version
implementation 'com.deepgram:deepgram-java-sdk:0.5.0' // x-release-please-version
}
```

Expand All @@ -39,7 +39,7 @@ Add the dependency to your `pom.xml`:
<dependency>
<groupId>com.deepgram</groupId>
<artifactId>deepgram-java-sdk</artifactId>
<version>0.4.0</version> <!-- x-release-please-version -->
<version>0.5.0</version> <!-- x-release-please-version -->
</dependency>
```

Expand Down Expand Up @@ -408,7 +408,7 @@ Use the separate [`deepgram-sagemaker`](https://github.com/deepgram/deepgram-jav

```groovy
dependencies {
implementation 'com.deepgram:deepgram-java-sdk:0.4.0' // x-release-please-version
implementation 'com.deepgram:deepgram-java-sdk:0.5.0' // x-release-please-version
implementation 'com.deepgram:deepgram-sagemaker:0.1.2'
}
```
Expand Down
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ publishing {
}

group = 'com.deepgram'
version = '0.4.0' // x-release-please-version
version = '0.5.0' // x-release-please-version

java {
sourceCompatibility = JavaVersion.VERSION_11
Expand Down
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

<groupId>com.deepgram</groupId>
<artifactId>deepgram-java-sdk</artifactId>
<version>0.4.0</version> <!-- x-release-please-version -->
<version>0.5.0</version> <!-- x-release-please-version -->
<packaging>jar</packaging>

<name>Deepgram Java SDK</name>
Expand Down
4 changes: 2 additions & 2 deletions src/main/java/com/deepgram/core/ClientOptions.java
Original file line number Diff line number Diff line change
Expand Up @@ -41,10 +41,10 @@ private ClientOptions(
this.headers.putAll(headers);
this.headers.putAll(new HashMap<String, String>() {
{
put("User-Agent", "com.deepgram:deepgram-java-sdk/0.4.0"); // x-release-please-version
put("User-Agent", "com.deepgram:deepgram-java-sdk/0.5.0"); // x-release-please-version
put("X-Fern-Language", "JAVA");
put("X-Fern-SDK-Name", "com.deepgram:deepgram-java-sdk");
put("X-Fern-SDK-Version", "0.4.0"); // x-release-please-version
put("X-Fern-SDK-Version", "0.5.0"); // x-release-please-version
}
});
this.headerSuppliers = headerSuppliers;
Expand Down
Loading