File tree Expand file tree Collapse file tree 1 file changed +4
-0
lines changed
Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -62,6 +62,7 @@ const useChatSession = () => {
6262 const setIsAiSpeaking = useSetRecoilState ( isAiSpeakingState ) ;
6363 const setAudioConnection = useSetRecoilState ( audioConnectionState ) ;
6464 const resetChatSettingsValue = useResetRecoilState ( chatSettingsValueState ) ;
65+ const setChatSettingsValue = useSetRecoilState ( chatSettingsValueState ) ;
6566 const setFirstUserInteraction = useSetRecoilState ( firstUserInteraction ) ;
6667 const setLoading = useSetRecoilState ( loadingState ) ;
6768 const wavStreamPlayer = useRecoilValue ( wavStreamPlayerState ) ;
@@ -190,6 +191,9 @@ const useChatSession = () => {
190191 if ( thread . metadata ?. chat_profile ) {
191192 setChatProfile ( thread . metadata ?. chat_profile ) ;
192193 }
194+ if ( thread . metadata ?. chat_settings ) {
195+ setChatSettingsValue ( thread . metadata ?. chat_settings ) ;
196+ }
193197 setMessages ( messages ) ;
194198 const elements = thread . elements || [ ] ;
195199 setTasklists (
You can’t perform that action at this time.
0 commit comments