diff options
author | Nate Sesti <sestinj@gmail.com> | 2023-08-31 08:20:59 -0700 |
---|---|---|
committer | Nate Sesti <sestinj@gmail.com> | 2023-08-31 08:20:59 -0700 |
commit | fd4a4dcf004bea86d982ffffb66b4e3cb38193a6 (patch) | |
tree | 2777ebf9f6aef183725dec8b4fbd7d32ba1fa5ae | |
parent | c253f0e83b984ea6e012e702d9e711b9a4929edf (diff) | |
download | sncontinue-fd4a4dcf004bea86d982ffffb66b4e3cb38193a6.tar.gz sncontinue-fd4a4dcf004bea86d982ffffb66b4e3cb38193a6.tar.bz2 sncontinue-fd4a4dcf004bea86d982ffffb66b4e3cb38193a6.zip |
fix: :bug: fix model changing bug
-rw-r--r-- | continuedev/src/continuedev/server/gui.py | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/continuedev/src/continuedev/server/gui.py b/continuedev/src/continuedev/server/gui.py index dbf9ba0d..2c4f2e4d 100644 --- a/continuedev/src/continuedev/server/gui.py +++ b/continuedev/src/continuedev/server/gui.py @@ -248,8 +248,11 @@ class GUIProtocolServer(AbstractGUIProtocolServer): prev_model.__class__.__name__ == other.__class__.__name__ and ( - not other.name.startswith("gpt") - or prev_model.name == other.name + other.name is not None + and ( + not other.name.startswith("gpt") + or prev_model.name == other.name + ) ) ): exists = True |