GithubHelp home page GithubHelp logo

Comments (4)

jinhongyii avatar jinhongyii commented on May 23, 2024 1

Thanks for finding out the bug. Can you make a pull request so that others will not encounter the same bug again?

from web-llm.

DustinBrett avatar DustinBrett commented on May 23, 2024 1

Thanks for finding out the bug. Can you make a pull request so that others will not encounter the same bug again?

Ya sure I could do that. From a testing pov I only know it worked for me, but hopefully it's a harmless change. Unless self was being used for things I have yet to run into.

from web-llm.

DustinBrett avatar DustinBrett commented on May 23, 2024

I actually figured this out last night. self = this; at llm_chat.js#L406 was not something Webpack liked. I've changed self back to this and made initProgressCallback an arrow function. Seems to have fixed it.

from web-llm.

DustinBrett avatar DustinBrett commented on May 23, 2024

FYI @jinhongyii, I closed this but perhaps others may run into this issue with self = this in the global scope.

from web-llm.

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.