buzhou9

Results 12 comments of buzhou9

Perhaps this can be done by manually using the "deepChatInstance. addMessage" method after receiving the message to add the content to the current conversation process

You can try this, it will correctly identify the identity. This is the document about this parameter. https://deepchat.dev/docs/messages/#names In addition, you need to delete "stream={" simulation ": 6} '" because...

I think this is caused by the asynchronous update rule of React itself. When onComponentrender is executed, React has not yet updated the content of deepChatRef. As an alternative, this...

You can use 'deep chat' like a regular HTML element like 'div', which is a use case. ```html Title const chatElementRef = document.getElementById('chat-element'); // Setting value via a property (easiest...

> 你好@buzhou9。 > > 您想要添加什么类型的自定义按钮以及事件侦听器的用途是什么。我们尽力保持 API 尽可能干净,并且仅在绝对必要时才提供选项,因此我不能保证我们会实现这一点。 > > 让我更多地了解您的用例,以便我更好地理解它。 > > 谢谢! Our current requirement is to add a button that users can click to restart a new conversation...

> > 你好@buzhou9。 > > 您想要添加什么类型的自定义按钮以及事件侦听器的用途是什么。我们尽力保持 API 尽可能干净,并且仅在绝对必要时才提供选项,因此我不能保证我们会实现这一点。 > > 让我更多地了解您的用例,以便我更好地理解它。 > > 谢谢! > > Our current requirement is to add a button that users can click to restart...

> Hi @buzhou9. Thankyou for sharing your information about your use-case. I have thought about this a little further and concluded that providing custom buttons is a big feature that...

There is no custom loading effect provided, but I have found this source code. You can clone the code and make modifications to get your own version ```javascript // src...

This is a branch where I made modifications to the fork source code repository. Thank you to the author, as the structure of the source code is very easy to...

Asynchronous operations can be handled using "async, await" ```javascript // +page.svelte let x = false; const f = async () => { // do something so x becomes true }...