Spaces:
Sleeping
Sleeping
|
Download README.md from LuillY3/glm-flash-api: direct link, hf CLI and curl.
- Browser
- Download file 760 Bytes
-
https://huggingface.co/spaces/LuillY3/glm-flash-api/resolve/main/README.md
- Command line
-
hf download hf://spaces/LuillY3/glm-flash-api/README.md
-
curl -L -o README.md https://huggingface.co/spaces/LuillY3/glm-flash-api/resolve/main/README.md
760 Bytes
| title: GLM-4.6V-Flash API | |
| emoji: 🤖 | |
| colorFrom: blue | |
| colorTo: indigo | |
| sdk: docker | |
| pinned: false | |
| app_port: 7860 | |
| # GLM-4.6V-Flash — OpenAI-Compatible API | |
| ## Endpoint | |
| ``` | |
| POST https://<tu-user>-glm-flash-api.hf.space/v1/chat/completions | |
| ``` | |
| ## Ejemplo | |
| ```bash | |
| curl https://<tu-user>-glm-flash-api.hf.space/v1/chat/completions \ | |
| -H "Content-Type: application/json" \ | |
| -d '{"model":"GLM-4.6V-Flash","messages":[{"role":"user","content":"Hola"}],"max_tokens":512}' | |
| ``` | |
| | Variable | Default | Descripción | | |
| |---|---|---| | |
| | `CONTEXT_SIZE` | `8192` | Tokens de contexto | | |
| | `NUM_THREADS` | `2` | Hilos CPU | | |
| | `MAX_TOKENS` | `1024` | Tokens por respuesta | | |
| Keep-alive n8n: GET /health cada 9 min. | |
| ⚠️ Primer arranque: descarga ~8 GB (~15s en HF). | |