Coder Social home page Coder Social logo

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

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

from chatgpt-next-web.

Comments (8)

nextchat-manager avatar nextchat-manager commented on July 2, 2024

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

from chatgpt-next-web.

Issues-translate-bot avatar Issues-translate-bot commented on July 2, 2024

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?

from chatgpt-next-web.

Dean-YZG avatar Dean-YZG commented on July 2, 2024

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

from chatgpt-next-web.

Issues-translate-bot avatar Issues-translate-bot commented on July 2, 2024

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?

from chatgpt-next-web.

wisdomlsh avatar wisdomlsh commented on July 2, 2024

是这样的
image

from chatgpt-next-web.

Issues-translate-bot avatar Issues-translate-bot commented on July 2, 2024

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


Is such that
image

from chatgpt-next-web.

wisdomlsh avatar wisdomlsh commented on July 2, 2024

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

from chatgpt-next-web.

Issues-translate-bot avatar Issues-translate-bot commented on July 2, 2024

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

from chatgpt-next-web.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.