Skip to content

Commit

Permalink
feat: 默认开启无限对话模式
Browse files Browse the repository at this point in the history
  • Loading branch information
weaigc committed Nov 9, 2023
1 parent bffb019 commit de76c4c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/lib/hooks/use-bing.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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) => {
Expand Down
2 changes: 1 addition & 1 deletion src/state/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ export const isImageOnly = getCookie('IMAGE_ONLY') !== '0'
export const bingConversationStyleAtom = atomWithStorage<BingConversationStyle>('bingConversationStyle', BingConversationStyle.Balanced, undefined, { unstable_getOnInit: true })
export const voiceAtom = atomWithStorage<boolean>('enableTTS', false, undefined, { unstable_getOnInit: true })
export const historyAtom = atomWithStorage<boolean>('enableHistory', false, undefined, { unstable_getOnInit: true })
export const unlimitAtom = atomWithStorage<boolean>('enableUnlimitedConversation', false, undefined, { unstable_getOnInit: true })
export const unlimitAtom = atomWithStorage<boolean>('enableUnlimitedConversation', true, undefined, { unstable_getOnInit: true })
export const systemPromptsAtom = atomWithStorage<string>('systemPrompts', '', undefined, { unstable_getOnInit: true })
export const localPromptsAtom = atomWithStorage<Prompt[]>('prompts', [], undefined, { unstable_getOnInit: true })

Expand Down

0 comments on commit de76c4c

Please sign in to comment.