Fix chat defaults #46
Reference in New Issue
Block a user
Delete Branch "fix-chat-default-model"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Aggiornato il gestore della chat per impostare i valori predefiniti per il modello e la strategia nel dropdown.
Pull Request Overview
This PR fixes the initialization of default values in the chat interface dropdowns. The changes ensure that both the model (provider) and investment style (strategy) dropdowns display their currently selected values when the interface loads, improving the user experience by making the current configuration immediately visible.
Key Changes:
stylevariable tostrategyfor consistency with related method names💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
@@ -80,3 +80,4 @@provider = gr.Dropdown(choices=self.inputs.list_models_names(),value=self.inputs.team_leader_model.label,type="index",Setting
valuedirectly on a Gradio component after creation may not update the displayed default. Consider using thevalueparameter in thegr.Dropdown()constructor instead:value=self.inputs.team_leader_model.label.Setting
valuedirectly on a Gradio component after creation may not update the displayed default. Consider using thevalueparameter in thegr.Dropdown()constructor instead:value=self.inputs.strategy.label.