This commit is contained in:
parent
505d4cce78
commit
87da155477
3 changed files with 7 additions and 6 deletions
|
|
@ -424,6 +424,8 @@ export const useChat = (
|
|||
const response = responseItem as any
|
||||
if (thought.message_id && !hasSetResponseId)
|
||||
response.id = thought.message_id
|
||||
if (thought.conversation_id)
|
||||
response.conversationId = thought.conversation_id
|
||||
|
||||
if (response.agent_thoughts.length === 0) {
|
||||
response.agent_thoughts.push(thought)
|
||||
|
|
|
|||
|
|
@ -41,6 +41,7 @@ export type ThoughtItem = {
|
|||
tool_input: string
|
||||
tool_labels?: { [key: string]: TypeWithI18N }
|
||||
message_id: string
|
||||
conversation_id: string
|
||||
observation: string
|
||||
position: number
|
||||
files?: string[]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue