Fixed Error handling, Code duplication and Naming conventions. Contact me for more information at: DavidTheDev#0166
Co-authored-by: Danny Avila <110412045+danny-avila@users.noreply.github.com>
fix(api): change arrowParens prettier option to always
fix(api): update addToCache to include endpointOption and latestMessage
fix(api): update askOpenAI to include endpointOption in abortControllers
fix(client): remove abortKey state and add currentParent state to MessageHandler
feat: the first message will have a parentMessageId as 00000000-0000-0000-0000-000000000000 (in order not to create new convo when resubmit)
feat: ask will return the userMessage as well, to send back the messageId
TODO: comment out the title generation.
TODO: bing version need to be test
fix: never use the same messageId
fix: never delete exist messages
fix: connect response.parentMessageId to the userMessage.messageId
fix: set default convo title as new Chat
TODO: basic implementation. should add multi-path record in future.
feat: add deleteMessahesSince
feat: saveMessage will do createOrSave
feat: reorginazed submission