Neuro Worker is a proxy server used to access the Yandex Neuro API. This can be used with neurojs
This worker supports:
-
Official summarize API (get sharing-url)
prefix:
/th
POST /th/api/sharing-url
-
Browser summarize API (create session and summarize video)
prefix:
/browser
POST /browser/session/create
POST /browser/video-summary/generation
-
Web summarize API (300) with YaHMAC or Cookies
prefix:
/th
With YaHMAC:
POST /th/api/neuro/generation
With Cookies:
POST /th/api/generation
Get exists summarization by token from url (With YaHmac or Cookies)
POST /th/sharing
-
Self health. Check if it's working
GET /health
Worker is needed if:
- You have blocked Yandex servers
- You need to bypass CORS
To run your own instance:
- Install Docker
- Build the image
docker build -t "neuro-worker" .
- Run container
docker run -p 7674:7674 neuro-worker
-
Install Rust 1.75+
1.1. For linux also install:
# ubuntu / debian
sudo apt install build-essential pkg-config
-
(Optional) Run for developing:
2.1. Install
cargo watch
:cargo install cargo-watch
2.2. Run live server:
cargo watch -x run
-
Run for Production:
3.1. Build:
cargo build --release
3.2. Run a
neuro-worker
file:./target/release/neuro-worker