Spaces:
Sleeping
Sleeping
Update README.md
Browse files
README.md
CHANGED
|
@@ -11,7 +11,7 @@ app_port: 7860
|
|
| 11 |
# GLM-4.6V-Flash — OpenAI-Compatible API
|
| 12 |
|
| 13 |
## Endpoint
|
| 14 |
-
```
|
| 15 |
POST https://<tu-user>-glm-flash-api.hf.space/v1/chat/completions
|
| 16 |
```
|
| 17 |
|
|
@@ -22,9 +22,17 @@ curl https://<tu-user>-glm-flash-api.hf.space/v1/chat/completions \
|
|
| 22 |
-d '{"model":"GLM-4.6V-Flash","messages":[{"role":"user","content":"Hola"}],"max_tokens":512}'
|
| 23 |
```
|
| 24 |
|
| 25 |
-
##
|
| 26 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 27 |
GET https://<tu-user>-glm-flash-api.hf.space/health
|
| 28 |
```
|
| 29 |
|
| 30 |
-
⚠️ Primer arranque: descarga ~8 GB
|
|
|
|
| 11 |
# GLM-4.6V-Flash — OpenAI-Compatible API
|
| 12 |
|
| 13 |
## Endpoint
|
| 14 |
+
```bash
|
| 15 |
POST https://<tu-user>-glm-flash-api.hf.space/v1/chat/completions
|
| 16 |
```
|
| 17 |
|
|
|
|
| 22 |
-d '{"model":"GLM-4.6V-Flash","messages":[{"role":"user","content":"Hola"}],"max_tokens":512}'
|
| 23 |
```
|
| 24 |
|
| 25 |
+
## Variables de entorno (Settings → Variables)
|
| 26 |
+
|
| 27 |
+
| Variable | Default | Descripción |
|
| 28 |
+
|---|---|---|
|
| 29 |
+
| `CONTEXT_SIZE` | `8192` | Tokens de contexto |
|
| 30 |
+
| `NUM_THREADS` | `2` | Hilos CPU |
|
| 31 |
+
| `MAX_TOKENS` | `1024` | Tokens por respuesta |
|
| 32 |
+
|
| 33 |
+
## Keep-alive desde n8n (Schedule cada 9 min)
|
| 34 |
+
```bash
|
| 35 |
GET https://<tu-user>-glm-flash-api.hf.space/health
|
| 36 |
```
|
| 37 |
|
| 38 |
+
⚠️ Primer arranque: descarga ~8 GB. Esperar ~10-15 min.
|