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

[Help] 我把这个项目fork下来之后,更换了我自己接口,使用axios,接口是没有问题的,正常流式返回,但是我本地打印出来是一次性出来的,但是我部署到服务器上又是好的,甚至我只是更改了项目原本的fetch的接口路径和传参,本地也是不行,是为什么呢,可以解答一下吗 #4661

Open
3 tasks
wisdomlsh opened this issue May 11, 2024 · 8 comments
Labels
bug Something isn't working

Comments

@wisdomlsh
Copy link

Bug Description

希望能够流式返回

2024-05-11.12.59.27.mov

Steps to Reproduce

正常问答

Expected Behavior

希望流式返回

Screenshots

No response

Deployment Method

  • Docker
  • Vercel
  • Server

Desktop OS

mac M

Desktop Browser

chrome

Desktop Browser Version

124.0.6367.119

Smartphone Device

No response

Smartphone OS

No response

Smartphone Browser

No response

Smartphone Browser Version

No response

Additional Logs

No response

@wisdomlsh wisdomlsh added the bug Something isn't working label May 11, 2024
@nextchat-manager
Copy link

Please follow the issue template to update title and description of your issue.

@Issues-translate-bot
Copy link

Bot detected the issue body's language is not English, translate it automatically.


Title: [Help] After I forked this project, I changed my own interface and used axios. There is no problem with the interface and the normal streaming returns, but when I print it locally, it comes out all at once, but It was fine when I deployed it to the server. Even if I just changed the original fetch interface path and parameters of the project, it didn't work locally. Why? Can you explain it?

@Dean-YZG
Copy link
Contributor

您的接口支持event-source么?有接口响应信息的截图么?

@Issues-translate-bot
Copy link

Bot detected the issue body's language is not English, translate it automatically.


Does your interface support event-source? Do you have a screenshot of the interface response information?

@wisdomlsh
Copy link
Author

是这样的
image

@Issues-translate-bot
Copy link

Bot detected the issue body's language is not English, translate it automatically.


Is such that
image

@wisdomlsh
Copy link
Author

因为这个接口我在其他的AI项目中也有用到,都是正常流式返回,感觉有点像返回被什么缓存了,但是仅限于这个next的本地项目,其他的都正常,很奇怪
image

@Issues-translate-bot
Copy link

Bot detected the issue body's language is not English, translate it automatically.


Because I have also used this interface in other AI projects. They are all returned in a normal streaming manner. It feels a bit like the return is cached by something, but it is limited to this next local project. Everything else is normal, which is very strange.
image

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
None yet
Development

No branches or pull requests

3 participants