Fix configuration of name field for chatmodel options during initalization

This commit is contained in:
sabaimran
2025-01-12 22:37:08 -08:00
parent 96e3d0a7b9
commit 7f329e7e9d

View File

@@ -267,7 +267,7 @@ def initialization(interactive: bool = True):
)
# Remove models that are no longer available
existing_models.exclude(chat_model__in=available_models).delete()
existing_models.exclude(name__in=available_models).delete()
except Exception as e:
logger.warning(f"Failed to update models for {config.name}: {str(e)}")