Skip to content

1.4.4 - updating message streaming and addMessage method

Compare
Choose a tag to compare
@OvidijusParsiunas OvidijusParsiunas released this 25 Nov 20:44
· 396 commits to main since this release

This release comes bundled with multiple updates for chat message functionality:

  • Introducing a new overwrite property which allows the contents of the new message to overwrite the previous message. This facilitates the capability to create status message bubbles and streaming will no longer require the response to contain incremental portions of the previous text.
  • Stream functionality has also been updated to allow html content to streamed. Additionally, the stream simulation functionality now splits the incoming text by characters instead of words to allow Chinese characters to be streamed individually.
  • The submitUserMessage method now uses a new argument type called UserMessage which is an object that accepts text and files.
  • addMessage is a new method used to add messages into the chat. The use-case this is targeting is to eventually populate the chat history once it has been fetched after the chat has loaded.
  • The request object has a new optional credentials property which will allow developers to configure what services the cookies can be sent to.

Deprecation:

  • The "deep-chat-update-message" HTML Class has now be removed in favour of using the overwrite in responses.

This release also contains multiple bug fixes for streaming and html messages.