Update DeepChat Bundle JS to v2.1.1 (Backward Compatible with v2.0.1)

Created on 10 March 2025, 24 days ago

Problem/Motivation

The AI_CHATBOT submodule currently uses DeepChat JS v2.0.1, assumed by the fact this was the latest version at the time of the merge from the seperate DeepChat module https://www.drupal.org/project/ai/issues/3492895 Implement Deepchat Active . The latest available version is v2.1.1, which includes many newer features, along with bug fixes and accessibility enhancements.

And most importantly: All of the API changes are backwards compatible and thus introduce no breaking changes. As seen here https://github.com/OvidijusParsiunas/deep-chat/releases

Some of the newest features

- Deep Chat uses the remarkable library to render its MarkDown text, you can now configure it to your preference using the remarkable property. Thankyou to @quietdreamr for contributing this feature.
- Ability to set up a direct connection to the Azure OpenAI API. Thankyou to @bruffridge for contributing this feature.
- You can now add multiple intro messages.
- updateMessage method allows you to dynamically update existing messages within the chat. This opens up room for a variety of unique chat interactions, especially when updating message html.

Proposed resolution

Update the deepchat.bundle.js with the latest bundled version

Remaining tasks

Update the deepchat.bundle.js with the latest bundled version

API changes

API changes - all of these are backwards compatible:

- The loading property in the messageStyles object has been moved to the message styles property's object.
- The displayLoadingBubble property in the demo object has been refactored to displayLoading.

Feature request
Status

Active

Version

1.0

Component

Other Submodules

Created by

🇵🇹Portugal bbruno Poland

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Production build 0.71.5 2024