feat: webapp support change inputs after conversation started (#16901)
This commit is contained in:
parent
0722beeb0b
commit
c23135c9e8
15 changed files with 76 additions and 36 deletions
|
|
@ -54,6 +54,8 @@ export type ChatWithHistoryContextValue = {
|
|||
setClearChatList: (state: boolean) => void
|
||||
isResponding?: boolean
|
||||
setIsResponding: (state: boolean) => void,
|
||||
currentConversationInputs: Record<string, any> | null,
|
||||
setCurrentConversationInputs: (v: Record<string, any>) => void,
|
||||
}
|
||||
|
||||
export const ChatWithHistoryContext = createContext<ChatWithHistoryContextValue>({
|
||||
|
|
@ -85,5 +87,7 @@ export const ChatWithHistoryContext = createContext<ChatWithHistoryContextValue>
|
|||
setClearChatList: () => {},
|
||||
isResponding: false,
|
||||
setIsResponding: () => {},
|
||||
currentConversationInputs: {},
|
||||
setCurrentConversationInputs: () => {},
|
||||
})
|
||||
export const useChatWithHistoryContext = () => useContext(ChatWithHistoryContext)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue