T
Typebotβ€’10mo ago
Retr0

Streaming not working with OpenAI block

Is OpenAI streaming responses not working for anyone else? I believe I have setup my typebot correctly and streaming is still not working. Do I need to make some other configuration? Currently at latest version (2.26.1).
No description
33 Replies
Baptiste
Baptisteβ€’10mo ago
That looks right to me πŸ€” Can I try it out? Can you give me access to the bot?
Retr0
Retr0OPβ€’10mo ago
Sure thing, I will see into getting you access. @Baptiste You should have received an invitation in your email. The link is editor.enchatted.com
Stergios
Stergiosβ€’10mo ago
@Baptiste did you have any chance to look at this?
Baptiste
Baptisteβ€’10mo ago
Hey, this is streaming on my end πŸ€” Can you send a recording of your screen?
Retr0
Retr0OPβ€’10mo ago
Baptiste
Baptisteβ€’10mo ago
Indeed, my bad, it's not streaming So strange... I'm currently debugging and will let you know Ok it will be fixed in v2.27. It should be released today πŸ™‚
Retr0
Retr0OPβ€’9mo ago
@Baptiste Hello, it appears that as of v2.27 this is still not resolved. Streaming is not working neither on test mode nor in published mode.
Baptiste
Baptisteβ€’9mo ago
Indeed. How did you deploy it? Docker?
Retr0
Retr0OPβ€’9mo ago
Yes.
Chris Laupama
Chris Laupamaβ€’9mo ago
I believe self-hosted version isn’t on the latest updates and can take time to receive the latest updates. I believe the self-hosted version only receives updates once a month.
Retr0
Retr0OPβ€’9mo ago
The Docker installation is at the latest version (v.2.27)
Baptiste
Baptisteβ€’9mo ago
Can you tell me more about your deployment setup?
Retr0
Retr0OPβ€’9mo ago
Retr0
Retr0OPβ€’9mo ago
With the only difference that when we setup typebot there was no .env file back then so all config was put into the docker-compose file.
Stergios
Stergiosβ€’9mo ago
@Baptiste can you help us with that issue please?
William
Williamβ€’9mo ago
Hi is there any update on this? Does streaming work on openai block?
Baptiste
Baptisteβ€’9mo ago
Can you invite me in your app ([email protected])? @Stergios @William so that I check what's wrong
Retr0
Retr0OPβ€’9mo ago
You should already have access to our deployment. It is located at https://editor.enchatted.com/typebots
Stergios
Stergiosβ€’9mo ago
We are on the same team w @Retr0 . Awaiting your valuable feedback @Baptiste . Thanks in advance.
Baptiste
Baptisteβ€’9mo ago
I just need another example because I am thinking this might be due to a proxy you have set up Maybe Cloudflare?
Retr0
Retr0OPβ€’9mo ago
Yes we are using CF for our installation. If that's the cause of the issue, is there a way to mitigate it?
William
Williamβ€’9mo ago
In my case, we are not using any proxy, infact its a plain installation as described on the typebot site, caddy-gen is the reverse proxy, let me know if you need access to the application @Baptiste
William
Williamβ€’9mo ago
I have sent you an invite from our workspace - to - [email protected] @Baptiste also have created a bot in there to help you with reproducing the use case
Baptiste
Baptisteβ€’9mo ago
Can you invite [email protected] instead? I just tried the docker-compose set up without proxy, streaming is working
Baptiste
Baptisteβ€’9mo ago
@Retr0 @Stergios Does it work if you disable proxy on Cloudflare?
No description
Baptiste
Baptisteβ€’9mo ago
Ok, I tried again on https://editor.enchatted.com/typebots and for long messages it seems it is still streamed, just in 2 big chunks So I think the reverse proxy by default is buffering the response from the server. There should be a way to tell it not to do it Did you set caddy-gen service for the reverse proxy? Can we see your docker-compose file?
William
Williamβ€’9mo ago
sent you an invite, please do check
William
Williamβ€’9mo ago
I think its got something to do withe caddy setting: https://caddyserver.com/docs/caddyfile/directives/reverse_proxy#streaming
reverse_proxy (Caddyfile directive) - Caddy Documentation
Caddy is a powerful, enterprise-ready, open source web server with automatic HTTPS written in Go
William
Williamβ€’9mo ago
i think we need to set flush_interval to -1 and then it should work confirmed its working now have updated the following in the docker compose file: typebot-builder: labels: virtual.host: 'typebot.domain.com' # change to your domain name virtual.port: '3000' virtual.tls-email: '[email protected]' # change to your email virtual.proxy.directives: | flush_interval -1 typebot-viewer: labels: virtual.host: 'bot.domain.com' # change to your domain name virtual.port: '3000' virtual.tls-email: '[email protected]' # change to your email virtual.proxy.directives: | flush_interval -1 the new setting added is: virtual.proxy.directives: | flush_interval -1
Retr0
Retr0OPβ€’9mo ago
We can also confirm that setting flush_interval to -1 fixes the streaming issue to our deployment. As William mentioned, at least the docs should be updated to reflect on this.
Baptiste
Baptisteβ€’9mo ago
Awesome, thank you for the help πŸ‘Œ

Did you find this page helpful?