Only set hasmodified to true during model select if different from original model

This commit is contained in:
sabaimran
2025-01-19 18:19:48 -08:00
parent e982398c2c
commit 59ee6e961a

View File

@@ -183,7 +183,9 @@ function ChatSidebarInternal({ ...props }: ChatSideBarProps) {
function handleModelSelect(model: string) {
setSelectedModel(model);
setHasModified(true);
if (model !== agentData?.chat_model) {
setHasModified(true);
}
}
return (