Repository navigation
fix: report missing key permissions and hook up OpenRouter speech - #437
Merged
Merged
Conversation
A bare requestUrl throws on non-2xx and discards the provider's explanation, so a key missing a scope surfaced as "Request failed, status 401". Speech, transcription, OpenRouter video and the ElevenLabs tools now go through ProviderHttpClient.requestOk, which keeps that explanation and tells a key missing a permission apart from a wrong key. OpenRouter speech models were offered but mostly failed: Nexus defaulted to a voice other models reject and always asked for MP3, which Gemini and HeyGen refuse. Declare 31 models with voices from their own lists and wrap PCM as WAV. Remove the unregistered ElevenLabs textToSpeech tool and the Default TTS model setting, which only that tool read. Co-Authored-By: Claude Opus 5.5 <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Readable provider errors, in one place. Obsidian's
requestUrlthrows on non-2xx and discards the body, so a key missing a scope reached tools asRequest failed, status 401. Jest's mock returns the failure instead of throwing, so thestatus !== 200branches looked covered and never ran in production.ProviderHttpClient.requestOkkeeps the provider's explanation. Speech, transcription, OpenRouter video and the ElevenLabs tools use it. Chat and image tools already used this client, so they get the new wording too.ElevenLabs accepted the API key, but it is missing the text_to_speech permission…vsElevenLabs did not accept the API key. Check it in Nexus settings under Apps. (HTTP 401).{ detail: { message } }bodies are now read.requestUrlin the guarded files, anddocs/BUILDING_APPS.mdteachesrequestOk.OpenRouter speech now works. Models were offered but mostly failed.
alloy, which many models reject with a 400. 31 models are declared with a voice from their ownsupported_voices.generateAudiotells agents which extension each model needs. A model the catalog hasn't met falls back to PCM once.Removed dead code. The ElevenLabs
textToSpeechtool was never registered. The Apps tab's Default TTS model setting only fed that tool, so it did nothing. A saved value is ignored.Testing
npm run build,schemas:checkand the registry gate pass.Not tested live:
Worth checking in review
alloy.nexus-testingnotes from the in-app run of feat: add GPT Image 2.6, key-aware media schemas and model updates #436.🤖 Generated with Claude Code