Skip to content

Commit 0e63154

Browse files
authoredFeb 3, 2025··
Merge pull request #130 from AssemblyAI/fern-bot/02-03-2025-1058AM
🌿 Fern Regeneration -- February 3, 2025
2 parents 9f73332 + 5ff4554 commit 0e63154

File tree

3 files changed

+23
-44
lines changed

3 files changed

+23
-44
lines changed
 

‎build.gradle

+1-1
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ publishing {
4747
maven(MavenPublication) {
4848
groupId = 'com.assemblyai'
4949
artifactId = 'assemblyai-java'
50-
version = '4.0.0'
50+
version = '4.0.1'
5151
from components.java
5252
pom {
5353
scm {

‎src/main/java/com/assemblyai/api/resources/lemur/types/LemurModel.java

+18-39
Original file line numberDiff line numberDiff line change
@@ -7,30 +7,25 @@
77
import com.fasterxml.jackson.annotation.JsonValue;
88

99
public final class LemurModel {
10-
public static final LemurModel BASIC = new LemurModel(Value.BASIC, "basic");
10+
public static final LemurModel DEFAULT = new LemurModel(Value.DEFAULT, "default");
11+
12+
public static final LemurModel ANTHROPIC_CLAUDE2_0 =
13+
new LemurModel(Value.ANTHROPIC_CLAUDE2_0, "anthropic/claude-2");
1114

1215
public static final LemurModel ANTHROPIC_CLAUDE3_5_SONNET =
1316
new LemurModel(Value.ANTHROPIC_CLAUDE3_5_SONNET, "anthropic/claude-3-5-sonnet");
1417

15-
public static final LemurModel ANTHROPIC_CLAUDE2_1 =
16-
new LemurModel(Value.ANTHROPIC_CLAUDE2_1, "anthropic/claude-2-1");
17-
18-
public static final LemurModel ANTHROPIC_CLAUDE_INSTANT1_2 =
19-
new LemurModel(Value.ANTHROPIC_CLAUDE_INSTANT1_2, "anthropic/claude-instant-1-2");
20-
2118
public static final LemurModel ANTHROPIC_CLAUDE3_SONNET =
2219
new LemurModel(Value.ANTHROPIC_CLAUDE3_SONNET, "anthropic/claude-3-sonnet");
2320

24-
public static final LemurModel ANTHROPIC_CLAUDE2_0 =
25-
new LemurModel(Value.ANTHROPIC_CLAUDE2_0, "anthropic/claude-2");
26-
2721
public static final LemurModel ASSEMBLYAI_MISTRAL7B =
2822
new LemurModel(Value.ASSEMBLYAI_MISTRAL7B, "assemblyai/mistral-7b");
2923

3024
public static final LemurModel ANTHROPIC_CLAUDE3_HAIKU =
3125
new LemurModel(Value.ANTHROPIC_CLAUDE3_HAIKU, "anthropic/claude-3-haiku");
3226

33-
public static final LemurModel DEFAULT = new LemurModel(Value.DEFAULT, "default");
27+
public static final LemurModel ANTHROPIC_CLAUDE2_1 =
28+
new LemurModel(Value.ANTHROPIC_CLAUDE2_1, "anthropic/claude-2-1");
3429

3530
public static final LemurModel ANTHROPIC_CLAUDE3_OPUS =
3631
new LemurModel(Value.ANTHROPIC_CLAUDE3_OPUS, "anthropic/claude-3-opus");
@@ -66,24 +61,20 @@ public int hashCode() {
6661

6762
public <T> T visit(Visitor<T> visitor) {
6863
switch (value) {
69-
case BASIC:
70-
return visitor.visitBasic();
64+
case DEFAULT:
65+
return visitor.visitDefault();
66+
case ANTHROPIC_CLAUDE2_0:
67+
return visitor.visitAnthropicClaude2_0();
7168
case ANTHROPIC_CLAUDE3_5_SONNET:
7269
return visitor.visitAnthropicClaude3_5_Sonnet();
73-
case ANTHROPIC_CLAUDE2_1:
74-
return visitor.visitAnthropicClaude2_1();
75-
case ANTHROPIC_CLAUDE_INSTANT1_2:
76-
return visitor.visitAnthropicClaudeInstant1_2();
7770
case ANTHROPIC_CLAUDE3_SONNET:
7871
return visitor.visitAnthropicClaude3_Sonnet();
79-
case ANTHROPIC_CLAUDE2_0:
80-
return visitor.visitAnthropicClaude2_0();
8172
case ASSEMBLYAI_MISTRAL7B:
8273
return visitor.visitAssemblyaiMistral7b();
8374
case ANTHROPIC_CLAUDE3_HAIKU:
8475
return visitor.visitAnthropicClaude3_Haiku();
85-
case DEFAULT:
86-
return visitor.visitDefault();
76+
case ANTHROPIC_CLAUDE2_1:
77+
return visitor.visitAnthropicClaude2_1();
8778
case ANTHROPIC_CLAUDE3_OPUS:
8879
return visitor.visitAnthropicClaude3_Opus();
8980
case UNKNOWN:
@@ -95,24 +86,20 @@ public <T> T visit(Visitor<T> visitor) {
9586
@JsonCreator(mode = JsonCreator.Mode.DELEGATING)
9687
public static LemurModel valueOf(String value) {
9788
switch (value) {
98-
case "basic":
99-
return BASIC;
89+
case "default":
90+
return DEFAULT;
91+
case "anthropic/claude-2":
92+
return ANTHROPIC_CLAUDE2_0;
10093
case "anthropic/claude-3-5-sonnet":
10194
return ANTHROPIC_CLAUDE3_5_SONNET;
102-
case "anthropic/claude-2-1":
103-
return ANTHROPIC_CLAUDE2_1;
104-
case "anthropic/claude-instant-1-2":
105-
return ANTHROPIC_CLAUDE_INSTANT1_2;
10695
case "anthropic/claude-3-sonnet":
10796
return ANTHROPIC_CLAUDE3_SONNET;
108-
case "anthropic/claude-2":
109-
return ANTHROPIC_CLAUDE2_0;
11097
case "assemblyai/mistral-7b":
11198
return ASSEMBLYAI_MISTRAL7B;
11299
case "anthropic/claude-3-haiku":
113100
return ANTHROPIC_CLAUDE3_HAIKU;
114-
case "default":
115-
return DEFAULT;
101+
case "anthropic/claude-2-1":
102+
return ANTHROPIC_CLAUDE2_1;
116103
case "anthropic/claude-3-opus":
117104
return ANTHROPIC_CLAUDE3_OPUS;
118105
default:
@@ -135,10 +122,6 @@ public enum Value {
135122

136123
DEFAULT,
137124

138-
ANTHROPIC_CLAUDE_INSTANT1_2,
139-
140-
BASIC,
141-
142125
ASSEMBLYAI_MISTRAL7B,
143126

144127
UNKNOWN
@@ -159,10 +142,6 @@ public interface Visitor<T> {
159142

160143
T visitDefault();
161144

162-
T visitAnthropicClaudeInstant1_2();
163-
164-
T visitBasic();
165-
166145
T visitAssemblyaiMistral7b();
167146

168147
T visitUnknown(String unknownType);

‎src/main/java/com/assemblyai/api/resources/transcripts/types/Transcript.java

+4-4
Original file line numberDiff line numberDiff line change
@@ -351,8 +351,8 @@ public Optional<List<TranscriptWord>> getWords() {
351351
}
352352

353353
/**
354-
* @return When dual_channel or speaker_labels is enabled, a list of turn-by-turn utterance objects.
355-
* See <a href="https://www.assemblyai.com/docs/models/speaker-diarization">Speaker diarization</a> for more information.
354+
* @return When multichannel or speaker_labels is enabled, a list of turn-by-turn utterance objects.
355+
* See <a href="https://www.assemblyai.com/docs/speech-to-text/speaker-diarization">Speaker diarization</a> and <a href="https://www.assemblyai.com/docs/speech-to-text/speech-recognition#multichannel-transcription">Multichannel transcription</a> for more information.
356356
*/
357357
@JsonProperty("utterances")
358358
public Optional<List<TranscriptUtterance>> getUtterances() {
@@ -2166,8 +2166,8 @@ public _FinalStage confidence(Optional<Double> confidence) {
21662166
}
21672167

21682168
/**
2169-
* <p>When dual_channel or speaker_labels is enabled, a list of turn-by-turn utterance objects.
2170-
* See <a href="https://www.assemblyai.com/docs/models/speaker-diarization">Speaker diarization</a> for more information.</p>
2169+
* <p>When multichannel or speaker_labels is enabled, a list of turn-by-turn utterance objects.
2170+
* See <a href="https://www.assemblyai.com/docs/speech-to-text/speaker-diarization">Speaker diarization</a> and <a href="https://www.assemblyai.com/docs/speech-to-text/speech-recognition#multichannel-transcription">Multichannel transcription</a> for more information.</p>
21712171
* @return Reference to {@code this} so that method calls can be chained together.
21722172
*/
21732173
@java.lang.Override

0 commit comments

Comments
 (0)
Please sign in to comment.