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
12 changes: 12 additions & 0 deletions src/libs/AssemblyAI/Generated/AssemblyAI.Models.LemurModel.g.cs
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,14 @@ namespace AssemblyAI
/// </summary>
public enum LemurModel
{
/// <summary>
///
/// </summary>
AnthropicClaudeSonnet420250514,
/// <summary>
///
/// </summary>
AnthropicClaudeOpus420250514,
/// <summary>
///
/// </summary>
Expand Down Expand Up @@ -46,6 +54,8 @@ public static string ToValueString(this LemurModel value)
{
return value switch
{
LemurModel.AnthropicClaudeSonnet420250514 => "anthropic/claude-sonnet-4-20250514",
LemurModel.AnthropicClaudeOpus420250514 => "anthropic/claude-opus-4-20250514",
LemurModel.AnthropicClaude37Sonnet20250219 => "anthropic/claude-3-7-sonnet-20250219",
LemurModel.AnthropicClaude35Sonnet => "anthropic/claude-3-5-sonnet",
LemurModel.AnthropicClaude35Haiku20241022 => "anthropic/claude-3-5-haiku-20241022",
Expand All @@ -62,6 +72,8 @@ public static string ToValueString(this LemurModel value)
{
return value switch
{
"anthropic/claude-sonnet-4-20250514" => LemurModel.AnthropicClaudeSonnet420250514,
"anthropic/claude-opus-4-20250514" => LemurModel.AnthropicClaudeOpus420250514,
"anthropic/claude-3-7-sonnet-20250219" => LemurModel.AnthropicClaude37Sonnet20250219,
"anthropic/claude-3-5-sonnet" => LemurModel.AnthropicClaude35Sonnet,
"anthropic/claude-3-5-haiku-20241022" => LemurModel.AnthropicClaude35Haiku20241022,
Expand Down
3 changes: 3 additions & 0 deletions src/libs/AssemblyAI/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -219,6 +219,7 @@ paths:
description: Only get throttled transcripts, overrides the status filter
schema:
$ref: "#/components/schemas/ListTranscriptParams/properties/throttled_only"
deprecated: true
responses:
"200":
description: |
Expand Down Expand Up @@ -5790,6 +5791,8 @@ components:
description: |
The model that is used for the final prompt after compression is performed.
enum:
- anthropic/claude-sonnet-4-20250514
- anthropic/claude-opus-4-20250514
Comment on lines +5794 to +5795
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Potential issue

Enum values added but ancillary mappings were not updated

The two new models are now part of the canonical enum, yet the helper maps that many SDK generators rely on are missing entries:

  • x-fern-enum (≈ 5803-5862)
  • x-aai-enum (≈ 5863-5879)

Without those, code-gen will fail or omit the members, breaking compile-time safety.

@@ x-fern-enum:
+        anthropic/claude-sonnet-4-20250514:
+          description: >
+            Claude Sonnet 4 – next-generation balanced model.
+          casing:
+            camel: anthropicClaudeSonnet4_20250514
+            snake: anthropic_claude_sonnet4_20250514
+            pascal: AnthropicClaudeSonnet4_20250514
+            screamingSnake: ANTHROPIC_CLAUDE_SONNET4_20250514
+        anthropic/claude-opus-4-20250514:
+          description: >
+            Claude Opus 4 – highest-accuracy 4-series model.
+          casing:
+            camel: anthropicClaudeOpus4_20250514
+            snake: anthropic_claude_opus4_20250514
+            pascal: AnthropicClaudeOpus4_20250514
+            screamingSnake: ANTHROPIC_CLAUDE_OPUS4_20250514
@@ x-aai-enum:
+        anthropic/claude-sonnet-4-20250514:
+          label: Claude Sonnet 4 (on Anthropic)
+        anthropic/claude-opus-4-20250514:
+          label: Claude Opus 4  (on Anthropic)

Please add equivalent entries (and any casing you need) to keep the spec self-consistent.

📝 Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

Suggested change
- anthropic/claude-sonnet-4-20250514
- anthropic/claude-opus-4-20250514
# File: src/libs/AssemblyAI/openapi.yaml
# ───────────────────────────────────────────────────────────────────
# Add the two new Anthropic models into the helper maps so code-gen stays
# in sync with the canonical enum under Line 5794–5795.
x-fern-enum:
# … existing model entries …
anthropic/claude-sonnet-4-20250514:
description: >
Claude Sonnet 4 – next-generation balanced model.
casing:
camel: anthropicClaudeSonnet4_20250514
snake: anthropic_claude_sonnet4_20250514
pascal: AnthropicClaudeSonnet4_20250514
screamingSnake: ANTHROPIC_CLAUDE_SONNET4_20250514
anthropic/claude-opus-4-20250514:
description: >
Claude Opus 4 – highest-accuracy 4-series model.
casing:
camel: anthropicClaudeOpus4_20250514
snake: anthropic_claude_opus4_20250514
pascal: AnthropicClaudeOpus4_20250514
screamingSnake: ANTHROPIC_CLAUDE_OPUS4_20250514
x-aai-enum:
# … existing model entries …
anthropic/claude-sonnet-4-20250514:
label: Claude Sonnet 4 (on Anthropic)
anthropic/claude-opus-4-20250514:
label: Claude Opus 4 (on Anthropic)
🤖 Prompt for AI Agents
In src/libs/AssemblyAI/openapi.yaml around lines 5794 to 5879, two new enum
values were added but the corresponding helper mappings `x-fern-enum` and
`x-aai-enum` were not updated. To fix this, add equivalent entries for the new
models in both the `x-fern-enum` section (lines ~5803-5862) and the `x-aai-enum`
section (lines ~5863-5879), ensuring any necessary casing adjustments are made
to keep the spec consistent and maintain compile-time safety for SDK generators.

- anthropic/claude-3-7-sonnet-20250219
- anthropic/claude-3-5-sonnet
- anthropic/claude-3-5-haiku-20241022
Expand Down