@@ -12,21 +12,19 @@ import {
12
12
} from '@/utils/app/conversation'
13
13
import { Conversation } from '@/types/chat'
14
14
import { KeyValuePair } from '@/types/data'
15
- import { OpenAIModelID , OpenAIModels } from '@/types/openai'
15
+ import { OpenAIModels } from '@/types/openai'
16
16
import { Chat } from '@/components/Chat/Chat'
17
17
import { ReactStreamChatContext } from './context'
18
18
import { ReactStreamChatInitialState , initialState } from './state'
19
19
import { v4 as uuidv4 } from 'uuid'
20
20
21
- const defaultModelId = OpenAIModelID . GPT_3_5
22
-
23
21
export const ReactStreamChat = ( ) => {
24
22
const contextValue = useCreateReducer < ReactStreamChatInitialState > ( {
25
23
initialState,
26
24
} )
27
25
28
26
const {
29
- state : { lightMode , conversations, selectedConversation } ,
27
+ state : { conversations, selectedConversation, defaultModelId } ,
30
28
dispatch,
31
29
} = contextValue
32
30
@@ -144,7 +142,7 @@ export const ReactStreamChat = () => {
144
142
>
145
143
{ selectedConversation && (
146
144
< main
147
- className = { `flex h-screen w-screen flex-col text-sm text-white dark:text-white ${ lightMode } ` }
145
+ className = { `flex h-screen w-screen flex-col text-sm text-white dark:text-white dark ` }
148
146
>
149
147
< div className = "flex h-full w-full pt-[48px] sm:pt-0" >
150
148
< div className = "flex flex-1" >
0 commit comments