fix: 🐛 fix model changing bug

This commit is contained in:
Nate Sesti 2023-08-31 08:20:59 -07:00
parent c253f0e83b
commit fd4a4dcf00

View file

@ -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