-
Notifications
You must be signed in to change notification settings - Fork 1.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
bug? cannot read properties of undefined reading split req.model #291
Comments
Same issue over here |
Same here. Actually exactly the same trying it to get running on macOS it always ends up breaking down on the "model.split()" |
I adjusted the sample code to "alpaca.7B" and was able to get it to run. const Dalai = require('dalai') |
This only happens when you have just 1 model downloaded when you have 2 or more the issue no longer exists |
same on ubuntu |
Yeah, this is a showstopping bug for me on macOS - downloading >1 model does fix it though. |
in the meantime, you can have the entire dalai and alpaca in your own new npm-project:
edit the config.model = form.querySelector('#model option[selected]').value save. now you can serve:
|
@jopek Thanks for this. Though for some reason my browser page model select html never gets the attribute |
Same error here.
|
the attribute itself is set on the to see what i mean navigate to https://www.w3schools.com/tags/tryit.asp?filename=tryhtml_option_selected > Array.from(temp1.querySelectorAll("select option")).map(opt=>opt.selected)
< (4) [true, false, false, false] if you select the 3rd option "vw", the result should be |
Check this image:
when running from windows (#4) the request has both req.model and req.models (in plural).
but in docker compose (#3), the
req
object has only the req.model, and as a result the code crashes.What am I missing?
The text was updated successfully, but these errors were encountered: