dalai icon indicating copy to clipboard operation
dalai copied to clipboard

Autocomplete not working due to Socket.io issues

Open areibman opened this issue 1 year ago • 2 comments

Description

Running the server with npx dalai serve and clicking "autocomplete" doesn't work

Expected Behavior

Clicking autocomplete after typing in text leads to nothing happening.

Actual Behavior

2023-03-12 17 18 44

Nothing renders on page. There's a suspicious error in console about socket.io Console error: Failed to load resource: the server responded with a status of 404 (Not Found) http://localhost:3000/socket.io.min.js.map

Possible Solution

[If you have an idea for how to fix the issue, describe it here.]

Steps to Reproduce

  1. npx dalai llama
  2. npx dalai serve
  3. Try to use autocomplete (and fail).

Additional Information

Environment

Running on an M1 MBP. Tried Safari and Chrome on localhost:3000

  • OS: MacOS Ventura
  • Browser: Safari/Chrome
  • Version:

Screenshots

image

Related Issues

Labels

  • bug

areibman avatar Mar 13 '23 00:03 areibman

Okay, so here is how it worked for me. I checked (Mac - /Users/me/dalai/models) and it seems the model was not downloaded (missing chk files). I downloaded it again (using npx dalai llama 7B) and then this time npx dalai serve worked.

imohitmayank avatar Mar 13 '23 05:03 imohitmayank

@cocktailpeanut This is fixed in #16, which prints an error message if the model does not exist

marcuswestin avatar Mar 13 '23 11:03 marcuswestin