🛠️ 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:
Danny Avila 2024-02-28 15:15:45 -05:00 committed by GitHub
parent 057fcf6274
commit 388dc1789b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 60 additions and 10 deletions

View file

@ -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]);
};
}