Giter Club home page Giter Club logo

Comments (10)

haibbo avatar haibbo commented on June 11, 2024 1

其实他是支持stream的, 只是Azure OpenAI service 会积累一段信息再返回.

你在azure试试它的playground, 结果应该和你在opencat上看到的一样

from cf-openai-azure-proxy.

coolxyz avatar coolxyz commented on June 11, 2024 1

根据
Chanzhaoyu/chatgpt-web#831
这个issue,Azure和OpenAI在stream模式下还是有区别的,需要在最后加一个/n结尾,
否则客户端就接受不到结束的标志,不知道Cloudflare这里能不能做相应的对应。

from cf-openai-azure-proxy.

haibbo avatar haibbo commented on June 11, 2024 1

👍 加换行符 让会话STOP 应该可以, 我明天调调看.

from cf-openai-azure-proxy.

kotobuki09 avatar kotobuki09 commented on June 11, 2024

Besides the issue with the stream answer is not ending through the proxy. I also got the issue that all answers are individual and it's not related even in the same chat session. Is this normal? Or this is because of some other reason?
https://i.imgur.com/L6RpJBn.png

from cf-openai-azure-proxy.

haibbo avatar haibbo commented on June 11, 2024

Support stream now, please update code and try

from cf-openai-azure-proxy.

lzhgus avatar lzhgus commented on June 11, 2024

Hi @haibbo, thank you for the update. I tested the latest code and the stream is working now. The printer effect has also been achieved, but there is one problem, the code block is no longer highlighted. Did something go wrong when parsing the data?

from cf-openai-azure-proxy.

haibbo avatar haibbo commented on June 11, 2024

Hi @haibbo, thank you for the update. I tested the latest code and the stream is working now. The printer effect has also been achieved, but there is one problem, the code block is no longer highlighted. Did something go wrong when parsing the data?

which client do you use?

from cf-openai-azure-proxy.

kotobuki09 avatar kotobuki09 commented on June 11, 2024

Hi @haibbo, thank you for the update. I tested the latest code and the stream is working now. The printer effect has also been achieved, but there is one problem, the code block is no longer highlighted. Did something go wrong when parsing the data?

The code block is working on my case with this client. I think you need to check on the client side.

from cf-openai-azure-proxy.

lzhgus avatar lzhgus commented on June 11, 2024

I am currently using ChatGPT Next Web and will check the client side code.

from cf-openai-azure-proxy.

r-hou avatar r-hou commented on June 11, 2024

Support stream now, please update code and try

非常感谢,现在在opencat体验良好,送上star

from cf-openai-azure-proxy.

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.