mirror of
https://github.com/khoaliber/khoj.git
synced 2026-03-03 21:29:08 +00:00
Centralize use of useUserConfig and use that to retrieve default model and chat model options
This commit is contained in:
@@ -595,7 +595,7 @@ enum PhoneNumberValidationState {
|
||||
}
|
||||
|
||||
export default function SettingsView() {
|
||||
const { userConfig: initialUserConfig } = useUserConfig(true);
|
||||
const { data: initialUserConfig } = useUserConfig(true);
|
||||
const [userConfig, setUserConfig] = useState<UserConfig | null>(null);
|
||||
const [name, setName] = useState<string | undefined>(undefined);
|
||||
const [notionToken, setNotionToken] = useState<string | null>(null);
|
||||
|
||||
Reference in New Issue
Block a user