improvement(elevenlabs): wire stability and similarity_boost end-to-end#4679
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub. |
PR SummaryMedium Risk Overview Renames the tool param from Reviewed by Cursor Bugbot for commit abf9443. Configure here. |
Greptile SummaryThis PR wires
Confidence Score: 5/5Safe to merge — the end-to-end wiring is correct, the type rename is consistent across all five files, and the server-side contract properly validates the new fields. The contract boundary fix is straightforward and well-scoped. All changed files are internally consistent: the tool, contract, route, block, and types all use the same No files require special attention. Important Files Changed
Sequence DiagramsequenceDiagram
participant UI as Block UI (elevenlabs.ts)
participant Tool as ElevenLabs TTS Tool
participant Route as /api/tools/tts
participant EL as ElevenLabs API
UI->>UI: "parseUnitInterval(stability)<br/>parseUnitInterval(similarityBoost)"
UI->>Tool: "{ text, voiceId, modelId,<br/>stability, similarityBoost, apiKey }"
Tool->>Route: "POST /api/tools/tts<br/>body: { ..., stability, similarityBoost }"
Route->>Route: "ttsToolBodySchema.parse()<br/>z.coerce.number().min(0).max(1)"
Route->>Route: "hasVoiceSetting?<br/>build voice_settings<br/>with defaults 0.5/0.75"
Route->>EL: "POST /v1/text-to-speech/{voiceId}<br/>{ text, model_id, voice_settings? }"
EL-->>Route: audio/mpeg
Route-->>Tool: "{ audioUrl, audioFile }"
Tool-->>UI: "{ success, output }"
Reviews (2): Last reviewed commit: "fix(elevenlabs): guard NaN in voice sett..." | Re-trigger Greptile |
|
@greptile |
|
@cursor review |
There was a problem hiding this comment.
✅ Bugbot reviewed your changes and found no new issues!
Comment @cursor review or bugbot run to trigger another review on this PR
Reviewed by Cursor Bugbot for commit abf9443. Configure here.
Summary
stabilityandsimilarityBoostend-to-end (block → tool → contract → proxy route → ElevenLabsvoice_settings); previously the tool params were dropped at the contract boundarysimilarity→similarityBoostto align with the ElevenLabs API field (similarity_boost) and Sim's unified TTS contractmodelIddropdown, cleaned up redundant descriptions, removed duplicateElevenLabsBlockResponsetype, removed unusedparamsarg onheadersstability/similarityBoostto 0–1Type of Change
Testing
Tested manually.
bun run check:api-validation:strict, biome lint, andtsc --noEmitall clean.Checklist