Skip to content

[DOCS] note that disabled text_to_speech skips engine and model validation #630

Closed

Description

@inference-gateway-maintainer

Summary

The CLI now tolerates an unknown or invalid text_to_speech.engine / text_to_speech.model while text_to_speech.enabled is false (inference-gateway/cli#1142): a disabled feature never consults its sub-fields, so keys written by a newer binary sharing the same ~/.infer/config.yaml no longer break config loading for older binaries. Validation still fails fast when the feature is enabled.

The configuration documentation should state this conditional-validation behavior so users sharing configs across versions (e.g. the desktop app bundling an older CLI) understand why an unknown engine value is silently ignored unless text-to-speech is enabled.

Affected pages

  • docs/configuration-reference.md - text_to_speech section (engine, model, enabled fields)
  • docs/text-to-speech.md - engine selection notes

Origin

Acceptance Criteria

  • The text_to_speech.engine entry in configuration-reference.md notes that validation of engine and model is skipped while text_to_speech.enabled is false
  • text-to-speech.md mentions that an engine value from a newer binary is ignored (not fatal) when text-to-speech is disabled, and rejected at load time only when enabled
  • All lines are ASCII-only with plain hyphens and wrapped under 150 characters

Activity

  1. added
    documentation
    on Sep 1, 2026
  2. moved this to Todo in 2026on Sep 1, 2026
  3. edenreich commented on Sep 1, 2026

    @edenreich
    Contributor

    @claude Anything we need to document here? use /ponytail:ponytail

  4. added theissue type on Sep 1, 2026
  5. inference-gateway-maintainer commented on Sep 1, 2026

    @inference-gateway-maintainer
    ContributorAuthor

    Claude finished @edenreich's task in 1m 51s —— View job • docs/issue-630-20260901-2149 • [Create PR ➔](https://github.com/inference-gateway/docs/compare/main...docs/issue-630-20260901-2149?quick_pull=1&title=Issue%20%23630%3A%20Changes%20from%20Claude&body=This%20PR%20addresses%20issue%20%23630%0A%0AGenerated%20with%20%5BClaude%20Code%5D(https%3A%2F%2Fclaude.ai%2Fcode)


    Yes - one small doc gap, now fixed

    • Gather context
    • Add conditional-validation note to the config reference table
    • Note that an engine value from a newer binary is ignored while disabled, rejected when enabled
    • bun run lint:md, bun run format:check, bun run build - all pass
    • Commit and open PR

    PR: #631

    What changed (cli-text-to-speech.md)

    • Config reference table: text_to_speech.engine and text_to_speech.model now say "validated only when enabled is true".
    • New paragraph under the table: with TTS disabled the CLI never reads those sub-fields, so an unknown engine/model written by a newer infer sharing the same ~/.infer/config.yaml (e.g. the older CLI bundled with the desktop app) is ignored rather than fatal; flipping enabled: true makes the same value fail fast at load time, linking cli#1142.

    Scope note: the issue named docs/configuration-reference.md and docs/text-to-speech.md - neither exists here. The CLI TTS options and their configuration reference table both live in cli-text-to-speech.md, so both acceptance criteria land in that one file. configuration.md covers the gateway env vars and does not mention text_to_speech; cli.md's TTS entry is a pointer, left alone.

    Skipped: repeating the note in the Enabling YAML snippet and the troubleshooting table - the reference section is where anyone chasing an ignored engine value lands.
    | branch docs/issue-630-20260901-2149

  6. moved this from Todo to In progress in 2026on Sep 1, 2026
  7. moved this from In progress to QA in 2026on Sep 1, 2026
  8. moved this from QA to Done in 2026on Sep 3, 2026
  9. inference-gateway-releaser commented on Sep 22, 2026

    @inference-gateway-releaser
    Contributor

    🎉 This issue has been resolved in version 0.9.14 🎉

    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

    Projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions