mirror of
https://github.com/khoaliber/khoj.git
synced 2026-03-03 21:29:08 +00:00
Only set hasmodified to true during model select if different from original model
This commit is contained in:
@@ -183,7 +183,9 @@ function ChatSidebarInternal({ ...props }: ChatSideBarProps) {
|
||||
|
||||
function handleModelSelect(model: string) {
|
||||
setSelectedModel(model);
|
||||
setHasModified(true);
|
||||
if (model !== agentData?.chat_model) {
|
||||
setHasModified(true);
|
||||
}
|
||||
}
|
||||
|
||||
return (
|
||||
|
||||
Reference in New Issue
Block a user