GithubHelp home page GithubHelp logo

Comments (6)

bcarsley avatar bcarsley commented on July 23, 2024 2

Yeah just like to agree here -- tried both npm and pnpm, various different ways of building, same error as show above. I will manually clone, change the version, and see if that works -- seems like an easy enough fix

Update: yes, changing to 2.1.0 does in fact allow it to build and start the server on localhost (pnpm install => pnpm dev) ... BUT there are some issues with the class StreamingTextResponse, which could be a module versioning problem -- seems like this build may actually be dependent on the release of 2.1.1? see tracebacks below, I didn't change anything else about the build other than the version of the ai module (and as you can see even in 2.1.0 StreamingTextResponse seems to be defined as a constructor, making the traceback i got kinda curious)
Screenshot 2023-06-16 at 11 22 21 AM
Screenshot 2023-06-16 at 11 22 47 AM

from ai.

ashrielbrian avatar ashrielbrian commented on July 23, 2024 2

@bcarsley I got around it by simply creating the Response class on my own, since StreamingTextResponse is just a wrapper around it:

return new Response(stream, {
        status: 200,
        headers: {
            "Content-Type": "text/plain; charset=utf-8"
        }
    })
// return new StreamingTextResponse(stream)

from ai.

FelixWaweru avatar FelixWaweru commented on July 23, 2024 1

I'm also getting the same error

Maybe the automated build for version 2.1.1 didn't deploy the package?

from ai.

shuding avatar shuding commented on July 23, 2024 1

Thanks for the feedback! Can you try 2.1.2? It should have the problems fixed.

from ai.

bcarsley avatar bcarsley commented on July 23, 2024

Yeah just like to agree here -- tried both npm and pnpm, various different ways of building, same error as show above. I will manually clone, change the version, and see if that works -- seems like an easy enough fix

from ai.

JackHowa avatar JackHowa commented on July 23, 2024

ok thanks @shuding -- installing as expected!

from ai.

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.