https://github.com/vaayne/aienvoy
https://github.com/vaayne/aienvoy
Last synced: 6 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/vaayne/aienvoy
- Owner: vaayne
- License: gpl-3.0
- Created: 2023-07-10T00:45:01.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2024-02-02T14:05:24.000Z (over 2 years ago)
- Last Synced: 2024-02-03T14:52:08.809Z (over 2 years ago)
- Language: Go
- Size: 830 KB
- Stars: 1
- Watchers: 1
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
- Code of conduct: CODE_OF_CONDUCT.md
Awesome Lists containing this project
README
## Admin
user: admin@admin.com
pass: adminadmin
test_user@admin.com
test_usertest_user
## API
### Chat
PATH: `/v1/chat/completions`
PAYLOAD: {
"model": "",
"messages": [{}]
}
### Embedding
PATH: `/v1/embeddings`
PAYLOAD: {
"model": "text-embedding-ada-002",
"input": ""
}
## Deployment
### Systemd
1. add user to limit privileges
`sudo useradd -s /sbin/nologin -M odb`
2. Copy systemd unit service file
```bash
sudo cp ./deployments/odb.service /etc/systemd/system/
sudo chmod 755 /lib/systemd/system/odb.service
sudo systemctl daemon-reload
sudo systemctl enable odb.service
sudo systemctl start odb
# tail logs
sudo journalctl -f -u odb
```