Adarshu07 commited on
Commit
958a05c
·
verified ·
1 Parent(s): e6f28b1

Create README.md

Browse files
Files changed (1) hide show
  1. README.md +36 -5
README.md CHANGED
@@ -1,10 +1,41 @@
1
  ---
2
- title: Sec
3
- emoji: 📈
4
- colorFrom: purple
5
- colorTo: yellow
6
  sdk: docker
 
7
  pinned: false
8
  ---
9
 
10
- Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  ---
2
+ title: DevsDo API
3
+ emoji:
4
+ colorFrom: blue
5
+ colorTo: purple
6
  sdk: docker
7
+ app_port: 7860
8
  pinned: false
9
  ---
10
 
11
+ # DevsDo API Server
12
+
13
+ OpenAI-compatible API · 52 Models · Streaming · Reasoning · Zero Keys
14
+
15
+ ## Endpoints
16
+
17
+ | Method | Path | Description |
18
+ |--------|----------------------------|--------------------------------|
19
+ | GET | `/` | Server info |
20
+ | GET | `/health` | Health check |
21
+ | GET | `/v1/models` | Models (OpenAI format) |
22
+ | GET | `/api/internal/v1/models` | Detailed registry by family |
23
+ | POST | `/v1/chat/completions` | Chat (stream + non-stream) |
24
+
25
+ ## Quick Start
26
+
27
+ ```python
28
+ from openai import OpenAI
29
+
30
+ client = OpenAI(
31
+ base_url="https://YOUR-SPACE.hf.space/v1",
32
+ api_key="none"
33
+ )
34
+
35
+ # Streaming
36
+ for chunk in client.chat.completions.create(
37
+ model="deepseek-r1",
38
+ messages=[{"role": "user", "content": "Hello!"}],
39
+ stream=True,
40
+ ):
41
+ print(chunk.choices[0].delta.content or "", end="")