Enhance Settings Toggle: Disable Advanced Whisper & AI Context Window#478
Open
Yogesh-333 wants to merge 5 commits into
Open
Enhance Settings Toggle: Disable Advanced Whisper & AI Context Window#478Yogesh-333 wants to merge 5 commits into
Yogesh-333 wants to merge 5 commits into
Conversation
- Disabled only advanced Whisper settings when Built-in Speech2Text is OFF. - Disabled only AI Context Window Size when Built-in AI Processing is OFF. - Ensured other AI settings remain unaffected.
Reviewer's Guide by SourceryThis pull request enhances the settings toggle functionality by disabling advanced Whisper settings when Built-in Speech2Text is OFF and disabling the AI Context Window when Built-in AI Processing is OFF. It also ensures that the UI states for Whisper and AI settings are correctly initialized when the settings window is opened. Sequence diagram for toggling remote Whisper settingssequenceDiagram
participant UI
participant Settings
UI->>UI: User toggles Built-in Speech2Text (LOCAL_WHISPER)
UI->>Settings: Get current state of LOCAL_WHISPER
Settings-->>UI: Returns current state
UI->>UI: Determine state for Whisper settings
loop For each basic whisper setting
UI->>UI: config(state=state)
end
loop For each advanced whisper setting
UI->>UI: config(state=inverted_state)
end
UI->>UI: config(state=inverted_state) for whisper_models_drop_down
UI->>UI: config(state=inverted_state) for whisper_architecture_dropdown
Sequence diagram for toggling remote LLM settingssequenceDiagram
participant UI
participant Settings
UI->>UI: User toggles Built-in AI Processing (LOCAL_LLM)
UI->>Settings: Get current state of LOCAL_LLM
Settings-->>UI: Returns current state
UI->>UI: Determine state for LLM settings
UI->>UI: config(state=state) for openai_api_key_entry
loop For each LLM setting
UI->>UI: config(state=state)
end
loop For each AI context setting
UI->>UI: config(state=inverted_state)
end
UI->>UI: config(state=inverted_state) for architecture_dropdown
File-Level Changes
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
There was a problem hiding this comment.
Hey @Yogesh-333 - I've reviewed your changes - here's some feedback:
Overall Comments:
- Consider extracting the common logic for toggling widget states into a separate helper function to reduce code duplication.
- It might be cleaner to use boolean variables directly instead of comparing to 0 for state management.
Here's what I looked at during the review
- 🟡 General issues: 1 issue found
- 🟢 Security: all looks good
- 🟢 Testing: all looks good
- 🟢 Complexity: all looks good
- 🟢 Documentation: all looks good
Help me be more useful! Please click 👍 or 👎 on each comment and I'll use the feedback to improve your reviews.
|
I don't think this works, isn't the translate for remote here? |
Author
@yingbull yes it should be there sorry i missed it but added it now . Should be fine. |
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 by Sourcery
Improve settings toggle functionality by conditionally disabling advanced Whisper and AI Context Window settings based on local processing mode
Bug Fixes:
Enhancements: