Thanks!
268 karma · joined March 6, 2010
See https://github.com/psychic-api/rag-stack for an example. Note that most of the above verbiage also comes from there!
CGO_ENABLED=1 go build .
# github.com/jmorganca/ollama/llama
llama/llama.go:141:31: undefined: unsafe.SliceData
llama/llama.go:172:52: undefined: unsafe.SliceData
llama/llama.go:211:45: undefined: unsafe.SliceData
llama/llama.go:274:10: undefined: unsafe.SliceData
llama/llama.go:275:3: undefined: unsafe.SliceData
note: module requires Go 1.20Just like some strong pressure will bend a tape measure - will a strong wind gust damage your sails?
All of you have looked at rainbows, but very few of you have ever seen one!
1. Install NodeJS and NPM (if you don't already have it)
2. Create a new folder
3. Run "npm install youtubei.js@latest" in that folder
4. Create a new file in this folder called ytdl.js (or whatever you like)
5. See section "Downloading videos:" on the github page. Make the contents of the file exactly like that. i.e. just cut/paste that example.
6. Replace line 'Looking for life on Mars - documentary' with the name of the youtube video you want to download (ideally this should come from args)
7. Run "node ytdl.js" and it should download