mirror of
https://github.com/danny-avila/LibreChat.git
synced 2026-02-04 00:31:50 +01:00
* refactor(Nav): delegate Search-specific variables/hooks to SearchContext * fix: safely determine firstTodayConvoId if convo is undefined * chore: remove empty line * feat: initial render of search messages * feat: SearchButtons * update Ko.ts * update localizations with new key phrases * chore: localization comparisons * fix: clear conversation state on searchQuery navigation * style: search messages view styling * refactor(Convo): consolidate logic to navigateWithLastTools from useNavigateToConvo * fix(SearchButtons): styling and correct navigation logic * fix(SearchBar): invalidate all message queries and invoke `clearText` if onChange value is empty * refactor(NewChat): consolidate new chat button logic to NewChatButtonIcon * chore: localizations for Nav date groups * chore: update comparisons * fix: early return from sendRequest to avoid quick searchQuery reset * style: Link Icon * chore: bump tiktoken, use o200k_base for gpt-4o
16 lines
250 B
TypeScript
16 lines
250 B
TypeScript
import { atom } from 'recoil';
|
|
|
|
const isSearchEnabled = atom<boolean | null>({
|
|
key: 'isSearchEnabled',
|
|
default: null,
|
|
});
|
|
|
|
const searchQuery = atom({
|
|
key: 'searchQuery',
|
|
default: '',
|
|
});
|
|
|
|
export default {
|
|
isSearchEnabled,
|
|
searchQuery,
|
|
};
|