diff --git a/build.gradle b/build.gradle index 3e1dc674..ebd8fe7e 100644 --- a/build.gradle +++ b/build.gradle @@ -47,7 +47,7 @@ publishing { maven(MavenPublication) { groupId = 'com.assemblyai' artifactId = 'assemblyai-java' - version = '4.0.0' + version = '4.0.1' from components.java pom { scm { diff --git a/src/main/java/com/assemblyai/api/resources/lemur/types/LemurModel.java b/src/main/java/com/assemblyai/api/resources/lemur/types/LemurModel.java index 4893477b..9829263b 100644 --- a/src/main/java/com/assemblyai/api/resources/lemur/types/LemurModel.java +++ b/src/main/java/com/assemblyai/api/resources/lemur/types/LemurModel.java @@ -7,30 +7,25 @@ import com.fasterxml.jackson.annotation.JsonValue; public final class LemurModel { - public static final LemurModel BASIC = new LemurModel(Value.BASIC, "basic"); + public static final LemurModel DEFAULT = new LemurModel(Value.DEFAULT, "default"); + + public static final LemurModel ANTHROPIC_CLAUDE2_0 = + new LemurModel(Value.ANTHROPIC_CLAUDE2_0, "anthropic/claude-2"); public static final LemurModel ANTHROPIC_CLAUDE3_5_SONNET = new LemurModel(Value.ANTHROPIC_CLAUDE3_5_SONNET, "anthropic/claude-3-5-sonnet"); - public static final LemurModel ANTHROPIC_CLAUDE2_1 = - new LemurModel(Value.ANTHROPIC_CLAUDE2_1, "anthropic/claude-2-1"); - - public static final LemurModel ANTHROPIC_CLAUDE_INSTANT1_2 = - new LemurModel(Value.ANTHROPIC_CLAUDE_INSTANT1_2, "anthropic/claude-instant-1-2"); - public static final LemurModel ANTHROPIC_CLAUDE3_SONNET = new LemurModel(Value.ANTHROPIC_CLAUDE3_SONNET, "anthropic/claude-3-sonnet"); - public static final LemurModel ANTHROPIC_CLAUDE2_0 = - new LemurModel(Value.ANTHROPIC_CLAUDE2_0, "anthropic/claude-2"); - public static final LemurModel ASSEMBLYAI_MISTRAL7B = new LemurModel(Value.ASSEMBLYAI_MISTRAL7B, "assemblyai/mistral-7b"); public static final LemurModel ANTHROPIC_CLAUDE3_HAIKU = new LemurModel(Value.ANTHROPIC_CLAUDE3_HAIKU, "anthropic/claude-3-haiku"); - public static final LemurModel DEFAULT = new LemurModel(Value.DEFAULT, "default"); + public static final LemurModel ANTHROPIC_CLAUDE2_1 = + new LemurModel(Value.ANTHROPIC_CLAUDE2_1, "anthropic/claude-2-1"); public static final LemurModel ANTHROPIC_CLAUDE3_OPUS = new LemurModel(Value.ANTHROPIC_CLAUDE3_OPUS, "anthropic/claude-3-opus"); @@ -66,24 +61,20 @@ public int hashCode() { public T visit(Visitor visitor) { switch (value) { - case BASIC: - return visitor.visitBasic(); + case DEFAULT: + return visitor.visitDefault(); + case ANTHROPIC_CLAUDE2_0: + return visitor.visitAnthropicClaude2_0(); case ANTHROPIC_CLAUDE3_5_SONNET: return visitor.visitAnthropicClaude3_5_Sonnet(); - case ANTHROPIC_CLAUDE2_1: - return visitor.visitAnthropicClaude2_1(); - case ANTHROPIC_CLAUDE_INSTANT1_2: - return visitor.visitAnthropicClaudeInstant1_2(); case ANTHROPIC_CLAUDE3_SONNET: return visitor.visitAnthropicClaude3_Sonnet(); - case ANTHROPIC_CLAUDE2_0: - return visitor.visitAnthropicClaude2_0(); case ASSEMBLYAI_MISTRAL7B: return visitor.visitAssemblyaiMistral7b(); case ANTHROPIC_CLAUDE3_HAIKU: return visitor.visitAnthropicClaude3_Haiku(); - case DEFAULT: - return visitor.visitDefault(); + case ANTHROPIC_CLAUDE2_1: + return visitor.visitAnthropicClaude2_1(); case ANTHROPIC_CLAUDE3_OPUS: return visitor.visitAnthropicClaude3_Opus(); case UNKNOWN: @@ -95,24 +86,20 @@ public T visit(Visitor visitor) { @JsonCreator(mode = JsonCreator.Mode.DELEGATING) public static LemurModel valueOf(String value) { switch (value) { - case "basic": - return BASIC; + case "default": + return DEFAULT; + case "anthropic/claude-2": + return ANTHROPIC_CLAUDE2_0; case "anthropic/claude-3-5-sonnet": return ANTHROPIC_CLAUDE3_5_SONNET; - case "anthropic/claude-2-1": - return ANTHROPIC_CLAUDE2_1; - case "anthropic/claude-instant-1-2": - return ANTHROPIC_CLAUDE_INSTANT1_2; case "anthropic/claude-3-sonnet": return ANTHROPIC_CLAUDE3_SONNET; - case "anthropic/claude-2": - return ANTHROPIC_CLAUDE2_0; case "assemblyai/mistral-7b": return ASSEMBLYAI_MISTRAL7B; case "anthropic/claude-3-haiku": return ANTHROPIC_CLAUDE3_HAIKU; - case "default": - return DEFAULT; + case "anthropic/claude-2-1": + return ANTHROPIC_CLAUDE2_1; case "anthropic/claude-3-opus": return ANTHROPIC_CLAUDE3_OPUS; default: @@ -135,10 +122,6 @@ public enum Value { DEFAULT, - ANTHROPIC_CLAUDE_INSTANT1_2, - - BASIC, - ASSEMBLYAI_MISTRAL7B, UNKNOWN @@ -159,10 +142,6 @@ public interface Visitor { T visitDefault(); - T visitAnthropicClaudeInstant1_2(); - - T visitBasic(); - T visitAssemblyaiMistral7b(); T visitUnknown(String unknownType); diff --git a/src/main/java/com/assemblyai/api/resources/transcripts/types/Transcript.java b/src/main/java/com/assemblyai/api/resources/transcripts/types/Transcript.java index c2a6360d..97cac218 100644 --- a/src/main/java/com/assemblyai/api/resources/transcripts/types/Transcript.java +++ b/src/main/java/com/assemblyai/api/resources/transcripts/types/Transcript.java @@ -351,8 +351,8 @@ public Optional> getWords() { } /** - * @return When dual_channel or speaker_labels is enabled, a list of turn-by-turn utterance objects. - * See Speaker diarization for more information. + * @return When multichannel or speaker_labels is enabled, a list of turn-by-turn utterance objects. + * See Speaker diarization and Multichannel transcription for more information. */ @JsonProperty("utterances") public Optional> getUtterances() { @@ -2166,8 +2166,8 @@ public _FinalStage confidence(Optional confidence) { } /** - *

When dual_channel or speaker_labels is enabled, a list of turn-by-turn utterance objects. - * See Speaker diarization for more information.

+ *

When multichannel or speaker_labels is enabled, a list of turn-by-turn utterance objects. + * See Speaker diarization and Multichannel transcription for more information.

* @return Reference to {@code this} so that method calls can be chained together. */ @java.lang.Override