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: Clone:
```bash ```bash
sudo git clone https://git.alcozaky.my.id/sakhiy/litellm-config.git /opt/litellm 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 ### 2. Buat file .env
```bash ```bash
cp .env.example .env sudo cp .env.example .env
nano .env # ← isi semua API key & password sudo nano .env # ← isi semua API key & password
``` ```
### 3. Jalanin Docker Compose ### 3. Jalanin Docker Compose
```bash ```bash
docker compose up -d sudo docker compose up -d
``` ```
Cek status: Cek status:
```bash ```bash
docker compose ps sudo docker compose ps
docker compose logs -f litellm sudo docker compose logs -f litellm
``` ```
### 4. Test proxy ### 4. Test proxy
```bash ```bash
curl http://localhost:4000/health sudo curl http://localhost:4000/health
# Test pake model # Test pake model
curl http://localhost:4000/v1/chat/completions \ sudo curl http://localhost:4000/v1/chat/completions \
-H "Content-Type: application/json" \ -H "Content-Type: application/json" \
-H "Authorization: Bearer $(grep LITELLM_MASTER_KEY .env | cut -d= -f2)" \ -H "Authorization: Bearer $(grep LITELLM_MASTER_KEY .env | cut -d= -f2)" \
-d '{ -d '{