Releases: OvidijusParsiunas/deep-chat
1.4.2 - custom roles
Deep Chat now supports the use of custom roles in your messages. This is particularly useful if your server communicates with multiple agents or users and you want to uniquely represent their message bubbles in the chat. This can be customized using messageStyles
, avatars
and names
properties.
This update also includes bug fixes for controlling the submit button when streaming and simulating a stream whilst using websockets.
1.4.1 - OpenAI assistants, vision, text to speech and function calling
The OpenAI DevDay 2023 conference introduced a variety of exciting new features into the AI ecosystem, all of which are now available in Deep Chat:
- OpenAI Vision - use the latest
gpt-4-vision-preview
model to analyze images in the chat. - Text To Speech - generate audio based on your text input.
- Assistant - connect and converse with your custom OpenAI assistant.
- Function Calling - execute function calls returned by the regular chat or the assistant.
You can check all of these features in the Deep Chat's OpenAI documentation page or try them all out live in the Playground.
This release also saw the retirement of the OpenAI completions
feature as it has now been moved to legacy status in the OpenAI documentation. The default character (token) limits for all OpenAI models have been removed as they vary by the model and are cumbersome to maintain, hence you will alternatively need to set them manually using the requestBodyLimits
property.
1.4.0 - enhancing the submit button API and fixing bugs
The Deep Chat submit button has been upgraded with new features:
- A new
disabled
button state has been added to disable the button when the current user input cannot be sent out to the target service or the websocket connection is not established. - You can disable this state to have the submit button always enabled by toggling the
alwaysEnabled
property to true. - You can now manually set the
disabled
state via the use of thedisableSubmitButton
method. This is particularly useful for cases where there are other factors outside of the chat that would need to stop the user from being able to send out messages. - The
validateMessageBeforeSending
interceptor has now been renamed tovalidateInput
as it is now triggered when the user changes text or uploads/deletes files. - The overall
submitButtonStyles
method has been refactored to require less repetitive styling values to achieve the same output.
This bug also contains a few bug fixes where the chat width was increased when the user had inserted long words and the background color used to bleed out from the chat container when the inputAreaStyle
background was set.
1.3.23 - ability to set message bubble line height
This release fixes an issue where the lineHeight
in MessageElementStyles bubble
property could previously not be set.
Additionally when using OpenAI or Cohere chat
services via the directConnection property and there are files inside the initialMessages array, the file messages will be filtered out.
1.3.22 - adding a deep-chat-update-message html class
We have added a new "deep-chat-update-message"
class to the Deep Chat Classes that allows the same ai message bubble to be updated by multiple server responses when using websockets. This allows for the creation of status messages for better UX.
This update also includes code refactoring where the conversion of function based properties is no longer done via eval
(which is now deprecated), but using new Function()
instead.
1.3.21 - bug fix for sending messages
Our previous release 1.3.19
introduced a minor bug which prevented JSON messages from being sent to a target custom service. This has now been fixed.
1.3.19 - send files and stream responses
This release contains a bug fix where users could previously not send a file and stream (using server sent events) the response message. This has now been fixed.
1.3.18 - inner message width refactoring
Inner message widths were previously set to 90% of the chat container width. This dimension did not scale well when the chat component was expanded for bigger screens. Hence it has now been changed to calc(97.5% - 24px) to scale much better.
This update also includes other code refactoring work.
1.3.17 - updating MessageContent format
Previously the MessageContent format allowed only one data type to be transferred and stored per message. This has now changed to allow multiple data types such as text
and html
in the same message.
The file
property has also been changed to a files
array. This is to allow multiple files to be stored within the same message and to be more consistent with the Response format.
1.3.16 - updating dependency versions
Updating all of the dependency package versions to the latest.