LuillY3 commited on
Commit
dc39b14
·
verified ·
1 Parent(s): d7a96dc

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +12 -4
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
- ## Keep-alive (n8n — cada 9 min)
26
- ```
 
 
 
 
 
 
 
 
27
  GET https://<tu-user>-glm-flash-api.hf.space/health
28
  ```
29
 
30
- ⚠️ Primer arranque: descarga ~8 GB, esperar ~10-15 min.
 
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.