From fd4a4dcf004bea86d982ffffb66b4e3cb38193a6 Mon Sep 17 00:00:00 2001 From: Nate Sesti Date: Thu, 31 Aug 2023 08:20:59 -0700 Subject: fix: :bug: fix model changing bug --- continuedev/src/continuedev/server/gui.py | 7 +++++-- 1 file 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 -- cgit v1.2.3-70-g09d2