Skip to content

[DOCS] the Go SDK wraps CreateSFX and CreateMusic - stale does-not-wrap claims in sdks.md and api-reference.md #1224

Closed

Description

Summary

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

Activity

  1. added
    documentation
    on Nov 15, 2026
  2. edenreich commented on Nov 15, 2026

    @edenreich
    Contributor

    @claude can you document this? if it's still relevant..

  3. inference-gateway-maintainer commented on Nov 15, 2026

    @inference-gateway-maintainer
    ContributorAuthor

    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 / CreateMusic

    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.

    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 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

  4. moved this from Todo to In progress in 2026on Nov 15, 2026
  5. moved this from In progress to QA in 2026on Nov 15, 2026
  6. moved this from QA to Done in 2026on Nov 15, 2026
  7. inference-gateway-releaser commented on Nov 17, 2026

    @inference-gateway-releaser
    Contributor

    🎉 This issue has been resolved in version 0.9.27 🎉

    The release is available on GitHub release

    Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    documentationreleased

    Type

    No type

    Projects

    • Status
      Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions