Spaces:
Paused
Paused
|
Download README.md from adarshukumar/Sec: direct link, hf CLI and curl.
- Browser
- Download file 1.09 kB
-
https://huggingface.co/spaces/adarshukumar/Sec/resolve/main/README.md
- Command line
-
hf download hf://spaces/adarshukumar/Sec/README.md
-
curl -L -o README.md https://huggingface.co/spaces/adarshukumar/Sec/resolve/main/README.md
1.09 kB
| title: DevsDo API | |
| emoji: ⚡ | |
| colorFrom: blue | |
| colorTo: purple | |
| sdk: docker | |
| app_port: 7860 | |
| pinned: false | |
| # ⚡ DevsDo API Server | |
| OpenAI-compatible API · 52 Models · Streaming · Reasoning · Zero Keys | |
| ## Endpoints | |
| | Method | Path | Description | | |
| |--------|----------------------------|--------------------------------| | |
| | GET | `/` | Server info | | |
| | GET | `/health` | Health check | | |
| | GET | `/v1/models` | Models (OpenAI format) | | |
| | GET | `/api/internal/v1/models` | Detailed registry by family | | |
| | POST | `/v1/chat/completions` | Chat (stream + non-stream) | | |
| ## Quick Start | |
| ```python | |
| from openai import OpenAI | |
| client = OpenAI( | |
| base_url="https://YOUR-SPACE.hf.space/v1", | |
| api_key="none" | |
| ) | |
| # Streaming | |
| for chunk in client.chat.completions.create( | |
| model="deepseek-r1", | |
| messages=[{"role": "user", "content": "Hello!"}], | |
| stream=True, | |
| ): | |
| print(chunk.choices[0].delta.content or "", end="") |