Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

支持Duck.ai请求的流式响应 #26

Open
aqz236 opened this issue Nov 15, 2024 · 4 comments
Open

支持Duck.ai请求的流式响应 #26

aqz236 opened this issue Nov 15, 2024 · 4 comments
Labels
bug Something isn't working

Comments

@aqz236
Copy link

aqz236 commented Nov 15, 2024

  • Your request 你想要啥
    支持Duck.ai请求的流式响应

  • Can you just submit a PR? (can be empty) 您是否能自己动手,丰衣足食(人话:自己提交个PR)?(可选)

  • Additional context (can be empty) 你还要说啥(可选)

@1234567Yang
Copy link
Owner

WS理论上是可以代理的啊(当然了也有可能是worker不支持ws连接),你有没有demo站点示意一下怎么个情况?

@aqz236 aqz236 changed the title 支持GPT类请求的流式响应 支持Duck.ai请求的流式响应 Nov 15, 2024
@aqz236
Copy link
Author

aqz236 commented Nov 15, 2024

抱歉,表述有误。测试的网站是duck.ai,已修改issues。
下面是对比的示例,左边是走cf代理的,不能流式响应,右边是直接访问的,正常流式响应

ezgif-1-a83f04f486

@1234567Yang 1234567Yang added bug Something isn't working and removed more-info-needed labels Nov 15, 2024
@1234567Yang
Copy link
Owner

我今天晚上看看怎么回事。如果是cf-worker不支持ws的话就没办法了,当然了我知道有个东西叫durable obj支持ws,但是要花钱,而且不确定这个情况下是否适用

@1234567Yang
Copy link
Owner

看了一下,不是啥ws,就是流式响应

但是流式响应好像也可以传html,这就比较麻烦了,因为要替换里面的url和注入,还没有啥特别好的思路

ReadableStream

@1234567Yang 1234567Yang moved this from In Progress to Todo in cf-proxy-project Nov 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Status: Todo
Development

No branches or pull requests

2 participants