GithubHelp home page GithubHelp logo

Comments (5)

npiv avatar npiv commented on May 23, 2024
Screen.Recording.2023-03-22.at.09.02.39.mov

from chatblade.

npiv avatar npiv commented on May 23, 2024

Nice idea, this works pretty well. It is on this branch if you would like to play with it. https://github.com/npiv/chatblade/tree/feature/poc-streaming

just check out the branch and pip install .

I will test a few more things and merge to main in coming days.

from chatblade.

luthfielaroeha avatar luthfielaroeha commented on May 23, 2024

Wow cool man, it works!

Btw, is it possible to automatically output the result as markdown?

I just playing around with the Live feature from python Rich library, and seems like we can automatically output the result to markdown.

        with Live(console=Console(), auto_refresh=False) as live:
            for message in result:
                live.update(Markdown(message.content), refresh=True)
                ...

But I'm not sure if this will break another thing

from chatblade.

luthfielaroeha avatar luthfielaroeha commented on May 23, 2024

Sorry misclick

from chatblade.

npiv avatar npiv commented on May 23, 2024

No worries, I've merged the streaming into main, and released it under 0.1.0. I might come back with some improvements in future depending on how it is received. Thanks for the suggestion.

Will close for now. I don't consider having valid markdown during streaming a high priority myself, but am happy to accept PRs if people care to look at it.

from chatblade.

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.