summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--continuedev/src/continuedev/server/gui.py7
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