iyaja / llama-fs

A self-organizing file system with llama 3
MIT License
4.49k stars 259 forks source link

Why is it saying method not allowed? #25

Open mosh98 opened 1 month ago

mosh98 commented 1 month ago

mosleh@Moslehs-MacBook-Pro organize % curl -X POST http://127.0.0.1:8000 -H "Content-Type: application/json" -d '{"path": "/Users/mosleh/Downloads/", "instruction": "organize", "incognito": true}' {"detail":"Method Not Allowed"}%

Ollama running in the background

JohnOstrowick commented 1 month ago

me too.

ceaserone commented 1 month ago

File system permissions? Is your python running newest?

bgruszka commented 4 weeks ago

You have to add /batch or /watch in URL, i.e.: http://127.0.0.1:8000/batch

Jaron-Wilson commented 4 weeks ago

You have to add /batch or /watch in URL, i.e.: http://127.0.0.1:8000/batch

Will try, also was about to ask when I refreshed and saw your comment

Edit: it works, but if there's no files then it will spit an error

deacon-mp commented 4 weeks ago

`INFO: Will watch for changes in these directories: ['/Users//Documents/llama-fs']

INFO: Uvicorn running on http://127.0.0.1:8000 (Press CTRL+C to quit)

INFO: Started reloader process [25668] using WatchFiles

INFO: Started server process [25672]

INFO: Waiting for application startup.

INFO: Application startup complete.

**INFO: 127.0.0.1:55355 - "GET /batch HTTP/1.1" 405 Method Not Allowed

INFO: 127.0.0.1:55356 - "GET /watch HTTP/1.1" 405 Method Not Allowed`**

JohnOstrowick commented 3 weeks ago

ok, curl -X POST http://127.0.0.1:8000/batch -H "Content-Type: application/json" -d '{"path": "/home/john/Downloads/", "instruction": "organize", "incognito": true}'

seemed to work. However, I would need to give it some useful documents to check.

also https://github.com/iyaja/llama-fs says we must use fastapi but I found it runs if you use 'uvicorn' instead... couldn't get fastapi to work/install/run.