Spaces:
Paused
Paused
Adarsh Kumar commited on
Create README.md
Browse files12345678910---title: Secemoji: 📈colorFrom: purplecolorTo: yellowsdk: dockerpinned: false---Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference1234567891011121314151617181920212223242526272829303132333435363738394041---title: DevsDo APIemoji: ⚡colorFrom: bluecolorTo: purplesdk: dockerapp_port: 7860pinned: false---# ⚡ DevsDo API ServerOpenAI-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```pythonfrom openai import OpenAIclient = OpenAI(base_url="https://YOUR-SPACE.hf.space/v1",api_key="none")# Streamingfor chunk in client.chat.completions.create(model="deepseek-r1",messages=[{"role": "user", "content": "Hello!"}],stream=True,):print(chunk.choices[0].delta.content or "", end="")
README.md+36-5