Comments (11)
Hi, I have managed to fix this for regular requests in deep-chat-dev
and deep-chat-react-dev
version 9.0.159
. Please let me know if you see any issues.
I will investigate the solution for streaming tomorrow.
Thanks!
from deep-chat.
Hi, I have now updated the deep-chat-dev
and deep-chat-react-dev
packages to version 9.0.160
to allow streaming with files. Let me know if this works for you.
Thanks!
from deep-chat.
Deep Chat only looks at the last message from that thread. The fix for this should be quite simple, but I will exercise caution.
This also does not appear to work for streams, though the solution for that might be much more complex. I will update you on the progress. Thanks!
from deep-chat.
Deep Chat only looks at the last message from that thread. The fix for this should be quite simple, but I will exercise caution. This also does not appear to work for streams, though the solution for that might be much more complex. I will update you on the progress. Thanks!
That's kinda what I suspected. Again, no rush, especially with the new job you mentioned in other issue.
Thanks!
from deep-chat.
After testing this out, there seems to be an issue that this fix creates.
When the assistant returns an image file, it returns multiple of the same image. I've tried recreating this on prod, and this issue does not appear.
Recreate
- Send message "Give example data for a csv and write it to a file. Then make a suitable bar chart for the example data."
- Assistant returns response with text, one csv, and two of the same images.
- can put a
console.log(response)
in response interceptor, which shows that the response has a duplicate image. - this can also be seen with a
console.log(message)
inonMessage
oronNewMessage
(depending on version)
This appears in deep-chat-dev
v9.0.160
, but does not appear in deep-chat
v1.4.11
.
from deep-chat.
Hey @jackitaliano.
I can see the issue. I'm a little out of time today but I'll investigate it as soon as I get a chance tomorrow. Thanks!
from deep-chat.
Hello @OvidijusParsiunas ,
Sounds good, thanks for looking into!
from deep-chat.
Hi @jackitaliano.
The issue should be fixed in version 9.0.165
. Let me know if this works for you and if you encounter any issues.
Thanks!
from deep-chat.
Hello @OvidijusParsiunas,
This issue appears to still be present.
In this chat, there are only the two files (image and csv), but it loads the image twice.
Hope this isn't too much of a hastle.
Thanks!
Edit:
To be clearer, this issue doesn't seem to be an edge case. If you make the same request as the user, it'll usually respond like that. Also, the same occurs if there are multiple text responses.
from deep-chat.
Hi @jackitaliano.
Thankyou for letting me know about this issue. Deep Chat has been configured to parse the incoming response message and if it identifies a reference to a file it automatically creates another message with that file to allow the user to download. However it appears that OpenAI assistants are automatically sending another message with the file contents for images. I was able to fix this problem and have released it in version 9.0.167
. I have also noticed that when there are multiple response messages, the messages (except the last one) are displayed in the wrong order. This has also been fixed.
Through testing I have also found that when streaming, the response can sometime stop and not generate other messages e.g. the bar chart message. It appears this happens when there is a "server error" response. Hence, unfortunately this is on the OpenAI side of things, so if the stream does not return the full result - Deep Chat can't do much about it.
Thankyou for your feedback and let me know if you notice any other issues in the future.
from deep-chat.
Hi, the functionality mentioned in this issue has now been released in Deep Chat version 2.0.0
.
from deep-chat.
Related Issues (20)
- Method not working when React state is updated HOT 1
- How to terminate a conversation when using the Handler approach. HOT 2
- How to define API for connect? HOT 2
- Backend taking too long to load ends up being ignored HOT 1
- How to make the message can be copied HOT 1
- Vue - Binding a variable outside of the chat component re-renders Deep Chat HOT 2
- Using streaming with function calling is giving an error HOT 3
- Access to the chat stream at stream start HOT 1
- Timestamp for message bubbles
- HTML content in the message bubble.
- When using OpenAI chatGPT. How can i customize system_prompt. HOT 1
- Question about deep chart in vue.js
- "chat" functionality for speech2text input enabling usage without pressing the mic button
- Strange avatar behaviour on consecutive message with `deep-chat-temporary-message` HOT 2
- OpenAI assistant function_handler is not async HOT 1
- Adding ollama api connection HOT 1
- I have a problem rendering.How to render Markdown when the type is html? HOT 4
- Audio format being saved as video/webm
- Audio format being saved as video/webm
- [Feature Request] Support array of `introMessage` HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from deep-chat.