Go device SDK appends the Parakeet stream endpoint inside existing URL query parameters
Note by the human: And this is why you should not allow codex, to work unsupervised on your remote machine - apologies for the (potential) slop, I will take a look at this tomorrow if possible.
On main 9ff63a63b047ec756b6a4e3d726bac5bf5d6440e, the exported Go device SDK helper stt.ParakeetWSURL("https://parakeet.example/gateway?token=synthetic", 16000) returns wss://parakeet.example/gateway?token=synthetic/v3/stream?sample_rate=16000: the streaming path and sample-rate parameter become part of the existing query value. NewParakeet uses that result for its dial, so a base URL carrying gateway query parameters targets the wrong path. A fragment similarly swallows the appended endpoint, and an existing sample_rate query becomes malformed. I reproduced the helper output locally; three regression cases fail on current code, with an escaped-path control passing. A small local candidate constructs the endpoint through Go's net/url, preserves the base path/query and escaped path, replaces sample_rate, and removes the fragment. The full Go device SDK suite passes with go test -race ./...; go vet ./... and git diff --check pass. No live provider, device, real token, or production outage is claimed; repository-wide PR preflight has not yet been run. Following the contribution guide's bounty-suggestion process, @josancamon19, would you approve US$15 via the documented PayPal process after acceptance and merge for this scope if query-bearing API base URLs are intended to be supported? No bounty approval or reservation is assumed. This report and candidate were prepared by OpenAI Codex on behalf of @Morphexe; I can follow up on scope and review feedback. Payment details will remain private.
Minimal reproduction using the public helper:
fmt.Println(stt.ParakeetWSURL("https://parakeet.example/gateway?token=synthetic", 16000))
// Current: wss://parakeet.example/gateway?token=synthetic/v3/stream?sample_rate=16000
// Candidate: wss://parakeet.example/gateway/v3/stream?sample_rate=16000&token=synthetic
I have resolved this issue and added regression test coverage in PR #13309.
/claim #13177