Download Dockerfile from GABAL-X/vision.x: direct link, hf CLI and curl.
- Browser
- Download file 418 Bytes
-
https://huggingface.co/spaces/GABAL-X/vision.x/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/GABAL-X/vision.x/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/GABAL-X/vision.x/resolve/main/Dockerfile
418 Bytes
| import { OpenAI } from "openai"; | |
| const client = new OpenAI({ | |
| baseURL: "https://router.huggingface.co/v1", | |
| apiKey: process.env.HF_TOKEN, | |
| }); | |
| const chatCompletion = await client.chat.completions.create({ | |
| model: "deepseek-ai/DeepSeek-R1", | |
| messages: [ | |
| { | |
| role: "user", | |
| content: "What is the capital of France?", | |
| }, | |
| ], | |
| }); | |
| console.log(chatCompletion.choices[0].message); |