Open billzhaoyansong opened 3 months ago
貌似我遇到这个问题了, 是否可以弄一个千问流式返回,完整的例子。
貌似我遇到这个问题了, 是否可以弄一个千问流式返回,完整的例子。
@allendata0706 帮忙提供下使用的 qwen 文档。 能直接帮忙来个 pr 就更好了
貌似我遇到这个问题了, 是否可以弄一个千问流式返回,完整的例子。
我的问题是在umi中开启来代理所导致,按照umi文档说明,设置一下环境变量解决。 参考文件:https://umijs.org/docs/guides/env-variables#umi_dev_server_compress
{ "scripts": { "analyze": "cross-env ANALYZE=1 max build", "build": "max build", "deploy": "npm run build && npm run gh-pages", "dev": "cross-env UMI_DEV_SERVER_COMPRESS=none umi dev" "start": "cross-env UMI_ENV=dev UMI_DEV_SERVER_COMPRESS=none max dev", } } 是不是这样设置的 我这样设置结果不能开启流式输出。 @allendata0706
🧐 问题描述
按照 这里 的方法做了一个flask的server,发送sse消息,但是pro-chat无法递进式的接收数据。总是等到消息全部结束了以后才能收到。不知是否是flask的设置有问题。如果可以能否提供一个完整的flask端example+pro-chat客户端例子
💻 示例代码
服务器端代码与这里 基本一致,prochat端代码如下
🚑 其他信息