[PR #5340] [MERGED] Fix ElevenLabs connection test URL #6732

Closed
opened 2026-10-23 04:13:09 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/Pasta-Devs/Marinara-Engine/pull/5340
Author: @SpicyMarinara
Created: 8/20/2026
Status: ✅ Merged
Merged: 8/20/2026
Merged by: @SpicyMarinara

Base: staging ← Head: fix/5339-elevenlabs-api-url


📝 Commits (2)

  • 14e99c1 fix(audio): test ElevenLabs versioned models endpoint
  • d1f4eb7 fix(audio): normalize catalog base URLs

📊 Changes

3 files changed (+39 additions, -2 deletions)

View changed files

📝 CHANGELOG.md (+1 -0)
📝 packages/server/src/routes/connections.routes.ts (+19 -1)
📝 scripts/regressions/open-issues.regression.ts (+19 -1)

📄 Description

Why

The generic connection test appended /models to the default ElevenLabs API root, producing a misleading 404 even though generation builds the provider URLs correctly. Users had to manually add /v1 to make the test pass.

Fixes #5339.

What changed

  • build the ElevenLabs audio connection probe against /v1/models
  • accept both unversioned and already-versioned saved ElevenLabs base URLs without duplicating /v1
  • add focused regression coverage for ElevenLabs and non-ElevenLabs audio catalog URLs
  • document the fix in the changelog

Test plan

  • Run pnpm check
  • Run pnpm build:shared && node ./scripts/run-regressions.mjs --filter scripts/regressions/open-issues.regression.ts
  • Manually verify an ElevenLabs audio connection with https://api.elevenlabs.io tests successfully with a valid API key
  • Manually verify an ElevenLabs audio connection already ending in /v1 does not request /v1/v1/models

Summary by CodeRabbit

  • Bug Fixes

    • Improved ElevenLabs connection testing by checking the /v1/models endpoint, including when versioned URLs are configured.
    • Prevented duplicate version segments in ElevenLabs model URLs.
    • Preserved existing audio connection behavior for other providers.
  • Tests

    • Added regression coverage for ElevenLabs and OpenAI connection endpoint handling.
  • Documentation

    • Updated the unreleased changelog with the connection testing improvement.

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/Pasta-Devs/Marinara-Engine/pull/5340 **Author:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Created:** 8/20/2026 **Status:** ✅ Merged **Merged:** 8/20/2026 **Merged by:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Base:** `staging` ← **Head:** `fix/5339-elevenlabs-api-url` --- ### 📝 Commits (2) - [`14e99c1`](https://github.com/Pasta-Devs/Marinara-Engine/commit/14e99c1be381b0209da61d46b26ac6c0e509246b) fix(audio): test ElevenLabs versioned models endpoint - [`d1f4eb7`](https://github.com/Pasta-Devs/Marinara-Engine/commit/d1f4eb7f26f1cf510c92e2c9ae914d2104448aac) fix(audio): normalize catalog base URLs ### 📊 Changes **3 files changed** (+39 additions, -2 deletions) <details> <summary>View changed files</summary> 📝 `CHANGELOG.md` (+1 -0) 📝 `packages/server/src/routes/connections.routes.ts` (+19 -1) 📝 `scripts/regressions/open-issues.regression.ts` (+19 -1) </details> ### 📄 Description ## Why The generic connection test appended `/models` to the default ElevenLabs API root, producing a misleading 404 even though generation builds the provider URLs correctly. Users had to manually add `/v1` to make the test pass. Fixes #5339. ## What changed - build the ElevenLabs audio connection probe against `/v1/models` - accept both unversioned and already-versioned saved ElevenLabs base URLs without duplicating `/v1` - add focused regression coverage for ElevenLabs and non-ElevenLabs audio catalog URLs - document the fix in the changelog ## Test plan - [ ] Run `pnpm check` - [ ] Run `pnpm build:shared && node ./scripts/run-regressions.mjs --filter scripts/regressions/open-issues.regression.ts` - [ ] Manually verify an ElevenLabs audio connection with `https://api.elevenlabs.io` tests successfully with a valid API key - [ ] Manually verify an ElevenLabs audio connection already ending in `/v1` does not request `/v1/v1/models` <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit - **Bug Fixes** - Improved ElevenLabs connection testing by checking the `/v1/models` endpoint, including when versioned URLs are configured. - Prevented duplicate version segments in ElevenLabs model URLs. - Preserved existing audio connection behavior for other providers. - **Tests** - Added regression coverage for ElevenLabs and OpenAI connection endpoint handling. - **Documentation** - Updated the unreleased changelog with the connection testing improvement. <!-- end of auto-generated comment: release notes by coderabbit.ai --> --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-10-23 04:13:09 +07:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Pasta-Devs/Marinara-Engine#6732
No description provided.