diff --git a/src/chat-manager.ts b/src/chat-manager.ts index a0f82cd..083ff9a 100644 --- a/src/chat-manager.ts +++ b/src/chat-manager.ts @@ -297,4 +297,5 @@ export class Search { } } -export default new ChatManager(); +const chatManager = new ChatManager(); +export default chatManager; diff --git a/src/components/header.tsx b/src/components/header.tsx index 3aa683e..c8dd200 100644 --- a/src/components/header.tsx +++ b/src/components/header.tsx @@ -138,7 +138,7 @@ export default function Header(props: HeaderProps) { const openSettings = useCallback(() => { context.settings.open(context.apiKeys.openai ? 'options' : 'user'); - }, [context, context.apiKeys.openai]); + }, [context]); return diff --git a/src/elevenlabs.tsx b/src/elevenlabs.tsx index ad62955..0e3b0e6 100644 --- a/src/elevenlabs.tsx +++ b/src/elevenlabs.tsx @@ -307,7 +307,7 @@ export function ElevenLabsReaderButton(props: { selector: string }) { } else { reader.current.stop(); } - }, [status, props.selector, context.apiKeys.elevenlabs]); + }, [status, props.selector, context.apiKeys.elevenlabs, context.settings, context.voice.id]); return (