Repository navigation
fix(tools): list TextToSpeech from its top-level config key - #350
Merged
Merged
Conversation
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.
Contributor
|
🎉 This PR is included in version 0.51.0 🎉 The release is available on GitHub release Your semantic-release bot 📦🚀 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
The tools dropdown never listed TextToSpeech.
list_toolsread onlyinfer config get tools, buttext_to_speechis a top-level config section that the CLI registers on its own flag, not atools.<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_toolsrunsinfer config get --format json.TOOLSmaps JSON pointers (/tools/bash/enabled,/text_to_speech/enabled, ...) to tool names.tools.enabledstill gates the whole list.text_to_speechflag.Known gap, left out of scope:
Computerhas no key in the CLI's config dump at all, so it still never lists.