Skip to content

fix(tools): list TextToSpeech from its top-level config key - #350

Merged
edenreich merged 1 commit into
mainfrom
fix/tools-top-level-config
Sep 27, 2026
Merged

edenreich merged 1 commit into
mainfrom
fix/tools-top-level-config

Conversation

@edenreich

Copy link
Copy Markdown
Contributor

Summary

The tools dropdown never listed TextToSpeech. list_tools read only infer config get tools, but text_to_speech is a top-level config section that the CLI registers on its own flag, not a tools.<key> entry. This PR reads the full config dump and matches each tool by JSON pointer, so top-level media tools list correctly. TextToVideo (#311) needs the same mechanism, and it lands in the stacked avatars PR.

Part of #311.

Changes

  • backend/src/tools.rs:
    • list_tools runs infer config get --format json.
    • TOOLS maps JSON pointers (/tools/bash/enabled, /text_to_speech/enabled, ...) to tool names.
    • tools.enabled still gates the whole list.
  • Tests use full-dump fixtures. A new case covers the top-level text_to_speech flag.

Known gap, left out of scope: Computer has no key in the CLI's config dump at all, so it still never lists.

text_to_speech is a top-level config section, not a tools.<key> entry, so
reading only `infer config get tools` never listed TextToSpeech. Read the
full config dump and match each tool by JSON pointer instead.
@edenreich
edenreich marked this pull request as ready for review September 26, 2026 21:16
@edenreich
edenreich merged commit 68bb7de into main Sep 27, 2026
1 check passed
@edenreich
edenreich deleted the fix/tools-top-level-config branch September 27, 2026 01:09
@inference-gateway-maintainer

Copy link
Copy Markdown
Contributor

🎉 This PR is included in version 0.51.0 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

@inference-gateway-maintainer inference-gateway-maintainer Bot added the released Shipped in a release label Oct 1, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

released Shipped in a release

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant