You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[DOCS] the Go SDK wraps CreateSFX and CreateMusic - stale does-not-wrap claims in sdks.md and api-reference.md #1224
While documenting the Go SDK CreateVideo dubbing inputs for the docs PR #1223, I verified the SDK surface (SDK v1.47.0, sdk.go) and found the Go SDK has shipped both CreateSFX(ctx, provider, CreateSFXRequest) ([]byte, error) and CreateMusic(ctx, provider, CreateMusicRequest) ([]byte, error) for a while. The docs still claim the opposite in three places:
sdks.md, tail of the Go "Speech synthesis" section: "The sibling sound effects and music endpoints have no CreateSFX / CreateMusic yet - call them over plain HTTP in the meantime"
api-reference.md, sound-effects section: "The Go SDK does not wrap it yet - call it over plain HTTP in the meantime"
api-reference.md, second "does not wrap it yet" occurrence ~150 lines later
Acceptance Criteria
Document the Go CreateSFX and CreateMusic methods in the Go section of sdks.md (signatures, request fields, []byte return semantics), verified against the SDK source rather than assumed
Replace the stale "does not wrap it yet" lines in api-reference.md with the accurate SDK state, and keep whichever plain-HTTP guidance still applies for the other languages
Confirm which SDK release introduced each method so any version note is correct
Still relevant - the claims were stale. Both methods exist in inference-gateway/sdk (sdk.go:45-46, implementations at sdk.go:1331 and sdk.go:1338) and shipped in SDK v1.38.0 (2026-09-22, "add sfx, music and video client methods"); v1.38.1 dropped wav from both format enums.
Verify the methods against the Go SDK source
Confirm the introducing release for each (both v1.38.0)
Document them in the Go section of sdks.md
Fix the stale "does not wrap it yet" lines in api-reference.md
Run lint / format / build
Commit and open PR
sdks.md - the stale sentence is replaced by a #### Sound effects and music generation subsection under the Go "Speech synthesis" heading: both signatures, the []byte return (nil plus a Go error on a provider 400), an example, and field tables for CreateSFXRequest (with the video scoring inputs Video, PreserveSpeech, StartOffsetSeconds, Output) and CreateMusicRequest, using the real enum constant names (sdk.CreateSFXRequestResponseFormatMp3, etc.).
api-reference.md - both "The Go SDK does not wrap it yet" lines now show the actual Go calls alongside the Rust/TypeScript/Python examples. That plain-HTTP guidance was Go-only, so nothing had to be kept for other languages.
I used an h4 instead of a fourth ### Sound effects and music heading deliberately: a same-slug heading inside the Go section would renumber the Python/TypeScript/Rust anchors (#sound-effects-and-music-1 / -2) that api-reference.md already links to.
bun run format:check, bun run lint:md and bun run build all pass.
Not done / risk: I did not fix an adjacent pre-existing inaccuracy - the Go speech table documents sdk.Mp3 / sdk.Wav, but the SDK only defines CreateSpeechRequestResponseFormatMp3-style constants, so those examples would not compile. Out of scope here, worth a separate ticket. The new Go snippets were not compiled against the SDK (no Go toolchain in this docs repo), only checked field-by-field against generated_types.go.
| Branch
Activity
edenreich commentedon Nov 15, 2026
@claude can you document this? if it's still relevant..
inference-gateway-maintainer commentedon Nov 15, 2026
Claude finished @edenreich's task in 3m 52s —— View job •
docs/issue-1224-20261115-1535• [Create PR ➔](https://github.com/inference-gateway/docs/compare/main...docs/issue-1224-20261115-1535?quick_pull=1&title=Issue%20%231224%3A%20Changes%20from%20Claude&body=This%20PR%20addresses%20issue%20%231224%0A%0AGenerated%20with%20%5BClaude%20Code%5D(https%3A%2F%2Fclaude.ai%2Fcode)Documenting Go
CreateSFX/CreateMusicStill relevant - the claims were stale. Both methods exist in
inference-gateway/sdk(sdk.go:45-46, implementations atsdk.go:1331andsdk.go:1338) and shipped in SDK v1.38.0 (2026-09-22, "add sfx, music and video client methods");v1.38.1droppedwavfrom both format enums.sdks.mdapi-reference.mdsdks.md - the stale sentence is replaced by a
#### Sound effects and music generationsubsection under the Go "Speech synthesis" heading: both signatures, the[]bytereturn (nilplus a Go error on a provider400), an example, and field tables forCreateSFXRequest(with the video scoring inputsVideo,PreserveSpeech,StartOffsetSeconds,Output) andCreateMusicRequest, using the real enum constant names (sdk.CreateSFXRequestResponseFormatMp3, etc.).api-reference.md - both "The Go SDK does not wrap it yet" lines now show the actual Go calls alongside the Rust/TypeScript/Python examples. That plain-HTTP guidance was Go-only, so nothing had to be kept for other languages.
I used an h4 instead of a fourth
### Sound effects and musicheading deliberately: a same-slug heading inside the Go section would renumber the Python/TypeScript/Rust anchors (#sound-effects-and-music-1/-2) thatapi-reference.mdalready links to.bun run format:check,bun run lint:mdandbun run buildall pass.PR: #1225
Not done / risk: I did not fix an adjacent pre-existing inaccuracy - the Go speech table documents
sdk.Mp3/sdk.Wav, but the SDK only definesCreateSpeechRequestResponseFormatMp3-style constants, so those examples would not compile. Out of scope here, worth a separate ticket. The new Go snippets were not compiled against the SDK (no Go toolchain in this docs repo), only checked field-by-field againstgenerated_types.go.| Branch
inference-gateway-releaser commentedon Nov 17, 2026
🎉 This issue has been resolved in version 0.9.27 🎉
The release is available on GitHub release
Your semantic-release bot 📦🚀