mirror of
https://github.com/danny-avila/LibreChat.git
synced 2025-12-19 18:00:15 +01:00
🛠️ fix: RunManager, AssistantService and useContentHandler Issues (#1920)
* fix(useContentHandler): retain undefined parts and handle them within `ContentParts` rendering * fix(AssistantService/in_progress): skip empty messages * refactor(RunManager): create highly specific `seenSteps` Set keys for RunSteps with use of `getDetailsSignature` and `getToolCallSignature`,to ensure changes from polling are always captured
This commit is contained in:
parent
057fcf6274
commit
388dc1789b
4 changed files with 60 additions and 10 deletions
|
|
@ -61,8 +61,6 @@ export default function useContentHandler({ setMessages, getMessages }: TUseCont
|
|||
response.content.push(initialResponse.content[0]);
|
||||
}
|
||||
|
||||
response.content = response.content.filter((p) => p !== undefined);
|
||||
|
||||
setMessages([...messages, response]);
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue