Public Access
update sudo
This commit is contained in:
@@ -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 '{
|
||||
|
||||
Reference in New Issue
Block a user