• Adeniji Adekunle James's avatar
    Fix: Custom Model Not Updating (#1817) (#1840) · a7bcec22
    Adeniji Adekunle James 提交于
    Closes (#1817)
    
    
    
    <!-- This is an auto-generated description by cubic. -->
    ---
    ## Summary by cubic
    Fixes the bug where editing a custom model didn’t update the currently
    selected model. The selection now stays in sync after renaming or
    editing.
    
    - **Bug Fixes**
    - Use useSettings to detect if the edited model is the active one (match
    provider and apiName).
    - Update settings.selectedModel with the new apiName; on failure show an
    error and keep the dialog open; otherwise show success, call onSuccess,
    then close.
    
    <sup>Written for commit 88045165a3989277e703a8f31712fcf1dfeaa32a.
    Summary will update automatically on new commits.</sup>
    
    <!-- End of auto-generated description by cubic. -->
    a7bcec22
EditCustomModelDialog.tsx 7.6 KB