labring / FastGPT

FastGPT is a knowledge-based platform built on the LLMs, offers a comprehensive suite of out-of-the-box capabilities such as data processing, RAG retrieval, and visual AI workflow orchestration, letting you easily develop and deploy complex question-answering systems without the need for extensive setup or configuration.
https://tryfastgpt.ai
Other
17.5k stars 4.7k forks source link

通过api接口访问对话,流失返回数据有问题 #1064

Closed zhangshuo687686 closed 6 months ago

zhangshuo687686 commented 7 months ago

例行检查

你的版本

问题描述 对话接口,请求参数中配置 detail=false,stream=true ,结果是流失返回。问题是返回的结果是在fastGPT生成结果后以流失返回,每条返回的数据时间间隔极端,造成在页面展示的时候感觉不到流失展示,像是一次展示结果。 复现步骤

预期结果

相关截图

c121914yu commented 7 months ago

这是要你客户端处理。。服务器肯定要第一时间返回。 参考 fastgpt fetch 接口。做帧率优化。