diff --git a/src/lib/hooks/use-bing.ts b/src/lib/hooks/use-bing.ts index 8cee427f..3cd6b0b6 100644 --- a/src/lib/hooks/use-bing.ts +++ b/src/lib/hooks/use-bing.ts @@ -114,7 +114,7 @@ export function useBing(botId: BotId = 'bing') { }, }).catch() }, - [botId, unlimit, attachmentList, chatState.bot, chatState.conversation, bingConversationStyle, speaker, setChatState, updateMessage], + [botId, unlimit, historyContext, attachmentList, chatState.bot, chatState.conversation, bingConversationStyle, speaker, setChatState, updateMessage], ) const uploadImage = useCallback(async (imgUrl: string) => { diff --git a/src/state/index.ts b/src/state/index.ts index 741535a5..2bb88302 100644 --- a/src/state/index.ts +++ b/src/state/index.ts @@ -57,7 +57,7 @@ export const isImageOnly = getCookie('IMAGE_ONLY') !== '0' export const bingConversationStyleAtom = atomWithStorage('bingConversationStyle', BingConversationStyle.Balanced, undefined, { unstable_getOnInit: true }) export const voiceAtom = atomWithStorage('enableTTS', false, undefined, { unstable_getOnInit: true }) export const historyAtom = atomWithStorage('enableHistory', false, undefined, { unstable_getOnInit: true }) -export const unlimitAtom = atomWithStorage('enableUnlimitedConversation', false, undefined, { unstable_getOnInit: true }) +export const unlimitAtom = atomWithStorage('enableUnlimitedConversation', true, undefined, { unstable_getOnInit: true }) export const systemPromptsAtom = atomWithStorage('systemPrompts', '', undefined, { unstable_getOnInit: true }) export const localPromptsAtom = atomWithStorage('prompts', [], undefined, { unstable_getOnInit: true })