update sudo

This commit is contained in:
2026-05-27 08:29:03 +07:00
parent d060b2e2f4
commit db5a4cfeb3
+8 -8
View File
@@ -20,35 +20,35 @@ Konfigurasi LiteLLM proxy untuk Hermes Agent & AI tools.
Clone:
```bash
sudo git clone https://git.alcozaky.my.id/sakhiy/litellm-config.git /opt/litellm
cd /opt/litellm
sudo cd /opt/litellm
```
### 2. Buat file .env
```bash
cp .env.example .env
nano .env # ← isi semua API key & password
sudo cp .env.example .env
sudo nano .env # ← isi semua API key & password
```
### 3. Jalanin Docker Compose
```bash
docker compose up -d
sudo docker compose up -d
```
Cek status:
```bash
docker compose ps
docker compose logs -f litellm
sudo docker compose ps
sudo docker compose logs -f litellm
```
### 4. Test proxy
```bash
curl http://localhost:4000/health
sudo curl http://localhost:4000/health
# Test pake model
curl http://localhost:4000/v1/chat/completions \
sudo curl http://localhost:4000/v1/chat/completions \
-H "Content-Type: application/json" \
-H "Authorization: Bearer $(grep LITELLM_MASTER_KEY .env | cut -d= -f2)" \
-d '{