Skip to content

fix(gradium): update parameters - #2359

Open
rosetta-livekit-bot[bot] wants to merge 1 commit into
tribunal-trespass-hartfrom
port/gradium-update-parameters
Open

fix(gradium): update parameters#2359
rosetta-livekit-bot[bot] wants to merge 1 commit into
tribunal-trespass-hartfrom
port/gradium-update-parameters

Conversation

@rosetta-livekit-bot

@rosetta-livekit-bot rosetta-livekit-bot Bot commented Aug 27, 2026

Copy link
Copy Markdown
Contributor

Ports livekit/agents#7014 to the Gradium TypeScript plugin.

  • use Harper (4SZHfMpw-p46Ywgs) as the default TTS voice
  • allow TTS.updateOptions() to update voiceId
  • add a patch changeset for @livekit/agents-plugin-gradium

The source PR adds or modifies no tests.

Source diff coverage

File-by-file classification
  • Adapted: livekit-plugins/livekit-plugins-gradium/livekit/plugins/gradium/__init__.py -> plugins/gradium/src/index.ts. The target already uses explicit named exports and does not export LLM, so the phantom-export fix is already satisfied without an edit.
  • Adapted: livekit-plugins/livekit-plugins-gradium/livekit/plugins/gradium/stt.py -> plugins/gradium/src/stt.ts. The target already resolves modelEndpoint in the same order: explicit option, GRADIUM_MODEL_ENDPOINT, then the hosted ASR endpoint. The removed Python-only TODO has no target counterpart, so no edit is needed.
  • Ported: livekit-plugins/livekit-plugins-gradium/livekit/plugins/gradium/tts.py -> plugins/gradium/src/tts.ts. Updated the default voice ID to Harper and added voiceId to the options accepted by updateOptions; endpoint precedence was already equivalent in the target.

Verification

  • pnpm exec vitest run plugins/gradium --passWithNoTests (passes; the package currently has no test files)
  • pnpm build
  • pnpm lint
  • pnpm exec prettier --check "plugins/gradium/src/tts.ts" ".changeset/quiet-dodos-smile.md"
  • pnpm test attempted after build: 1,361 tests pass; unrelated existing/environmental failures remain in AMD, OpenAI/Cerebras setup, an example LLM assertion, Hugging Face download timeout, Silero fixture setup, and worker cleanup.

Authoritative source: livekit/agents#7014


Ported from livekit/agents#7014

Original PR description
  • Remove "LLM" from all: the plugin exports no LLM, so 'from livekit.plugins.gradium import *' raised AttributeError.
  • Make GRADIUM_MODEL_ENDPOINT effective for TTS and STT: the parameter's non-None default meant the documented env var was never consulted. Default endpoints are unchanged when neither is set.
  • Allow switching voices via update_options(voice_id=...): the existing voice parameter is a fallback that the voice_id default always shadowed.
  • Change the default TTS voice to 4SZHfMpw-p46Ywgs (Harper), a voice from the public flagship catalog, matching the published LiveKit docs.

@changeset-bot

changeset-bot Bot commented Aug 27, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: c8b41ef

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 36 packages
Name Type
@livekit/agents-plugin-gradium Patch
@livekit/agents Patch
@livekit/agents-plugin-anam Patch
@livekit/agents-plugin-assemblyai Patch
@livekit/agents-plugin-baseten Patch
@livekit/agents-plugin-bey Patch
@livekit/agents-plugin-cartesia Patch
@livekit/agents-plugin-cerebras Patch
@livekit/agents-plugin-deepgram Patch
@livekit/agents-plugin-did Patch
@livekit/agents-plugin-elevenlabs Patch
@livekit/agents-plugin-fishaudio Patch
@livekit/agents-plugin-google Patch
@livekit/agents-plugin-hedra Patch
@livekit/agents-plugin-hume Patch
@livekit/agents-plugin-inworld Patch
@livekit/agents-plugin-lemonslice Patch
@livekit/agents-plugin-liveavatar Patch
@livekit/agents-plugin-livekit Patch
@livekit/agents-plugin-minimax Patch
@livekit/agents-plugin-mistral Patch
@livekit/agents-plugin-mistralai Patch
@livekit/agents-plugin-neuphonic Patch
@livekit/agents-plugin-openai Patch
@livekit/agents-plugin-perplexity Patch
@livekit/agents-plugin-phonic Patch
@livekit/agents-plugin-resemble Patch
@livekit/agents-plugin-rime Patch
@livekit/agents-plugin-runway Patch
@livekit/agents-plugin-sarvam Patch
@livekit/agents-plugin-silero Patch
@livekit/agents-plugin-soniox Patch
@livekit/agents-plugin-tavus Patch
@livekit/agents-plugin-trugen Patch
@livekit/agents-plugin-xai Patch
@livekit/agents-plugins-test Patch

Not sure what this means? Click here to learn what changesets are.

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

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

Copy link
Copy Markdown
Contributor

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 bugs or issues to report.

Devin Review

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.

0 participants