Skip to content
This repository was archived by the owner on Apr 1, 2025. It is now read-only.

🌿 Fern Regeneration -- February 3, 2025 #130

Merged
merged 1 commit into from
Feb 3, 2025
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 build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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");
Expand Down Expand Up @@ -66,24 +61,20 @@ public int hashCode() {

public <T> T visit(Visitor<T> 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:
Expand All @@ -95,24 +86,20 @@ public <T> T visit(Visitor<T> 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:
Expand All @@ -135,10 +122,6 @@ public enum Value {

DEFAULT,

ANTHROPIC_CLAUDE_INSTANT1_2,

BASIC,

ASSEMBLYAI_MISTRAL7B,

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

T visitDefault();

T visitAnthropicClaudeInstant1_2();

T visitBasic();

T visitAssemblyaiMistral7b();

T visitUnknown(String unknownType);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -351,8 +351,8 @@ public Optional<List<TranscriptWord>> getWords() {
}

/**
* @return When dual_channel or speaker_labels is enabled, a list of turn-by-turn utterance objects.
* See <a href="https://www.assemblyai.com/docs/models/speaker-diarization">Speaker diarization</a> for more information.
* @return When multichannel or speaker_labels is enabled, a list of turn-by-turn utterance objects.
* 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.
*/
@JsonProperty("utterances")
public Optional<List<TranscriptUtterance>> getUtterances() {
Expand Down Expand Up @@ -2166,8 +2166,8 @@ public _FinalStage confidence(Optional<Double> confidence) {
}

/**
* <p>When dual_channel or speaker_labels is enabled, a list of turn-by-turn utterance objects.
* See <a href="https://www.assemblyai.com/docs/models/speaker-diarization">Speaker diarization</a> for more information.</p>
* <p>When multichannel or speaker_labels is enabled, a list of turn-by-turn utterance objects.
* 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>
* @return Reference to {@code this} so that method calls can be chained together.
*/
@java.lang.Override
Expand Down