mirror of
https://github.com/arc53/DocsGPT.git
synced 2025-12-02 18:13:13 +00:00
refactor: improve tool call result handling and display in conversation components
This commit is contained in:
@@ -293,10 +293,11 @@ export const conversationSlice = createSlice({
|
||||
);
|
||||
|
||||
if (existingIndex !== -1) {
|
||||
Object.assign(
|
||||
state.queries[index].tool_calls[existingIndex],
|
||||
tool_call,
|
||||
);
|
||||
const existingCall = state.queries[index].tool_calls[existingIndex];
|
||||
state.queries[index].tool_calls[existingIndex] = {
|
||||
...existingCall,
|
||||
...tool_call,
|
||||
};
|
||||
} else state.queries[index].tool_calls.push(tool_call);
|
||||
},
|
||||
updateQuery(
|
||||
|
||||
Reference in New Issue
Block a user