• Patrick Devine's avatar
    bugfix: restore the current runOptions if loading fails in the CLI (#12402) · b04e46da
    Patrick Devine authored
    There are two bugs when using `/load <model>` for a model that doesn't exist, namely:
      1. it will not restore the current model settings if the current model is a thinking model; and
      2. it will crash is the current model is a non-thinking model
    
    This bug fix saves the current runOptions and then restores them if the model load
    doesn't happen. It also fixes the crash happening for non-thinking models.
    b04e46da
interactive.go 18.9 KB