Skip to content

Conversation

@HavenDV
Copy link
Contributor

@HavenDV HavenDV commented Jul 4, 2025

Summary by CodeRabbit

  • New Features

    • Added support for two new models: "anthropic/claude-sonnet-4-20250514" and "anthropic/claude-opus-4-20250514" in LeMUR tasks.
  • Deprecations

    • The throttled_only filter in transcript queries is now marked as deprecated.

@coderabbitai
Copy link

coderabbitai bot commented Jul 4, 2025

Walkthrough

The OpenAPI specification was updated to deprecate the throttled_only query parameter in the GET /v2/transcript endpoint and to add two new enum values to the LemurModel schema, representing additional supported models.

Changes

File Change Summary
src/libs/AssemblyAI/openapi.yaml Deprecated throttled_only query parameter in GET /v2/transcript; added two LemurModel enum values

Sequence Diagram(s)

sequenceDiagram
    participant Client
    participant API

    Client->>API: GET /v2/transcript?throttled_only=...
    API-->>Client: Returns transcripts (with 'throttled_only' parameter deprecated)

    Note over Client,API: For LeMUR tasks, new model enums are now accepted
Loading

Poem

In YAML fields, the changes bloom,
Two models join the LeMUR room.
"Throttled_only" takes a bow,
Deprecated, it leaves us now.
The API grows, the specs align—
A rabbit hops and marks the sign!
🐇✨

✨ Finishing Touches
🧪 Generate Unit Tests
  • Create PR with Unit Tests
  • Post Copyable Unit Tests in a Comment
  • Commit Unit Tests in branch bot/update-openapi_202507041826

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share
🪧 Tips

Chat

There are 3 ways to chat with CodeRabbit:

  • Review comments: Directly reply to a review comment made by CodeRabbit. Example:
    • I pushed a fix in commit <commit_id>, please review it.
    • Explain this complex logic.
    • Open a follow-up GitHub issue for this discussion.
  • Files and specific lines of code (under the "Files changed" tab): Tag @coderabbitai in a new review comment at the desired location with your query. Examples:
    • @coderabbitai explain this code block.
    • @coderabbitai modularize this function.
  • PR comments: Tag @coderabbitai in a new PR comment to ask questions about the PR branch. For the best results, please provide a very specific query, as very limited context is provided in this mode. Examples:
    • @coderabbitai gather interesting stats about this repository and render them as a table. Additionally, render a pie chart showing the language distribution in the codebase.
    • @coderabbitai read src/utils.ts and explain its main purpose.
    • @coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.
    • @coderabbitai help me debug CodeRabbit configuration file.

Support

Need help? Create a ticket on our support page for assistance with any issues or questions.

Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments.

CodeRabbit Commands (Invoked using PR comments)

  • @coderabbitai pause to pause the reviews on a PR.
  • @coderabbitai resume to resume the paused reviews.
  • @coderabbitai review to trigger an incremental review. This is useful when automatic reviews are disabled for the repository.
  • @coderabbitai full review to do a full review from scratch and review all the files again.
  • @coderabbitai summary to regenerate the summary of the PR.
  • @coderabbitai generate docstrings to generate docstrings for this PR.
  • @coderabbitai generate sequence diagram to generate a sequence diagram of the changes in this PR.
  • @coderabbitai auto-generate unit tests to generate unit tests for this PR.
  • @coderabbitai resolve resolve all the CodeRabbit review comments.
  • @coderabbitai configuration to show the current CodeRabbit configuration for the repository.
  • @coderabbitai help to get help.

Other keywords and placeholders

  • Add @coderabbitai ignore anywhere in the PR description to prevent this PR from being reviewed.
  • Add @coderabbitai summary to generate the high-level summary at a specific location in the PR description.
  • Add @coderabbitai anywhere in the PR title to generate the title automatically.

CodeRabbit Configuration File (.coderabbit.yaml)

  • You can programmatically configure CodeRabbit by adding a .coderabbit.yaml file to the root of your repository.
  • Please see the configuration documentation for more information.
  • If your editor has YAML language server enabled, you can add the path at the top of this file to enable auto-completion and validation: # yaml-language-server: $schema=https://coderabbit.ai/integrations/schema.v2.json

Documentation and Community

  • Visit our Documentation for detailed information on how to use CodeRabbit.
  • Join our Discord Community to get help, request features, and share feedback.
  • Follow us on X/Twitter for updates and announcements.

@HavenDV HavenDV enabled auto-merge (squash) July 4, 2025 18:27
@HavenDV HavenDV merged commit 016994a into main Jul 4, 2025
3 of 4 checks passed
@HavenDV HavenDV deleted the bot/update-openapi_202507041826 branch July 4, 2025 18:28
@coderabbitai coderabbitai bot changed the title feat:@coderabbitai feat:Deprecate throttled_only and add new enum values to LemurModel schema Jul 4, 2025
Copy link

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

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

Actionable comments posted: 1

🔭 Outside diff range comments (1)
src/libs/AssemblyAI/openapi.yaml (1)

216-223: Schema-level deprecation missing

The request-parameter has been marked deprecated: true, but the corresponding field in components.schemas.ListTranscriptParams.properties.throttled_only (≈ lines 5157-5165) is still marked as active.
SDK generators (Fern / OpenAPI) read the schema, not the in-line parameter, when building typed clients; consumers will therefore still see the property as current.

@@
         throttled_only:
           x-label: Throttled only
           description: Only get throttled transcripts, overrides the status filter
           type: boolean
           default: false
+          deprecated: true

Add the flag (and, ideally, a description of the replacement) to keep the contract consistent.

📜 Review details

Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 9ec3fa0 and 6eb6f63.

⛔ Files ignored due to path filters (1)
  • src/libs/AssemblyAI/Generated/AssemblyAI.Models.LemurModel.g.cs is excluded by !**/generated/**
📒 Files selected for processing (1)
  • src/libs/AssemblyAI/openapi.yaml (2 hunks)

Comment on lines +5794 to +5795
- anthropic/claude-sonnet-4-20250514
- anthropic/claude-opus-4-20250514
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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants