mirror of
https://github.com/khoaliber/khoj.git
synced 2026-03-09 05:39:12 +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) {
|
function handleModelSelect(model: string) {
|
||||||
setSelectedModel(model);
|
setSelectedModel(model);
|
||||||
setHasModified(true);
|
if (model !== agentData?.chat_model) {
|
||||||
|
setHasModified(true);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return (
|
return (
|
||||||
|
|||||||
Reference in New Issue
Block a user