Skip to content

chore(openai): remove STT.withGroq constructor#1321

Merged
toubatbrian merged 2 commits intomainfrom
claude/jolly-lovelace-oFtsy
Apr 28, 2026
Merged

chore(openai): remove STT.withGroq constructor#1321
toubatbrian merged 2 commits intomainfrom
claude/jolly-lovelace-oFtsy

Conversation

@toubatbrian
Copy link
Copy Markdown
Contributor

Summary

Port of livekit/agents#5555chore(openai): remove STT.with_groq constructor.

Groq has its own dedicated plugin (livekit-plugins-groq on Python; the equivalent @livekit/agents-plugin-groq should be the JS migration target for users). The OpenAI plugin's Groq STT shortcut is therefore being removed.

⚠️ This is an automated Claude Code Routine PR created by @toubatbrian. Right now it is in experimentation stage.

Ported changes

  • Remove STT.withGroq static constructor from plugins/openai/src/stt.ts. This mirrors the removal of STT.with_groq in the Python OpenAI plugin (livekit/plugins/openai/stt.py).
  • Drop the now-unused GroqAudioModels type from plugins/openai/src/models.ts. This mirrors removal of the GroqAudioModels literal in livekit/plugins/openai/models.py.
  • Drop the GroqAudioModels import from stt.ts (the only consumer).

Implementation nuances / divergence from the Python PR

The Python PR also removed the GroqChatModels literal from models.py, which was safe in Python because LLM.with_groq had already been deleted in a prior change. In agents-js, LLM.withGroq still exists in plugins/openai/src/llm.ts and references GroqChatModels. Therefore, this port intentionally keeps GroqChatModels and LLM.withGroq in place — removing them would be an out-of-scope breaking change for JS users and is not part of upstream PR #5555.

A follow-up port (mirroring whichever earlier Python PR removed LLM.with_groq) will be needed to fully reach parity — when that lands, GroqChatModels and LLM.withGroq can be removed together.

The Python PR also touches uv.lock, which is Python-specific and intentionally not ported.

Breaking change

Calls to STT.withGroq({ ... }) in user code will need to be migrated to the dedicated Groq plugin.

Test plan

  • pnpm -w build succeeds (no remaining references to GroqAudioModels or STT.withGroq).
  • pnpm -w test passes.
  • Verify no example or doc in this repo still imports STT.withGroq or GroqAudioModels.

Reviewers

cc @toubatbrian @livekit/agent-devs


🤖 Generated by Claude Code automation. Source PR: livekit/agents#5555.


Generated by Claude Code

Port of livekit/agents#5555. Groq has its own dedicated plugin, so
the OpenAI plugin no longer ships a Groq STT shortcut.

- Remove `STT.withGroq` static constructor from `plugins/openai/src/stt.ts`
- Drop the now-unused `GroqAudioModels` type from `plugins/openai/src/models.ts`
- Drop the `GroqAudioModels` import from `stt.ts`
@changeset-bot
Copy link
Copy Markdown

changeset-bot Bot commented Apr 27, 2026

⚠️ No Changeset found

Latest commit: 7ee357e

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

Copy link
Copy Markdown
Contributor

@devin-ai-integration devin-ai-integration Bot left a comment

Choose a reason for hiding this comment

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

✅ Devin Review: No Issues Found

Devin Review analyzed this PR and found no potential bugs to report.

View in Devin Review to see 1 additional finding.

Open in Devin Review

Copy link
Copy Markdown
Contributor

@lukasIO lukasIO left a comment

Choose a reason for hiding this comment

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

lgtm, but similar question to @theomonnom on the python side about how we want to deal with the fact that this is a breaking change.

Should we deprecate it instead for now?

@theomonnom
Copy link
Copy Markdown
Member

It was deleted on Python as well, so it lg to me

@toubatbrian toubatbrian merged commit d753956 into main Apr 28, 2026
7 of 8 checks passed
@toubatbrian toubatbrian deleted the claude/jolly-lovelace-oFtsy branch April 28, 2026 05:12
toubatbrian added a commit that referenced this pull request Apr 28, 2026
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.

3 participants