[LIVE] [sabyaghosh/hy3-openai-api-v1.5] 2 endpoint(s)
ChatGPT
API Proxy/ChatGPT
2,204 characters
Status: [LIVE]
Endpoints found:
https://tencent-Hy3.hf.space/gradio_api/call/chat
https://tencent-Hy3.hf.space/gradio_api/call/chat/{event_id}
Source: https://github.com/sabyaghosh/hy3-openai-api-v1.5
# Hy3 OpenAI-Compatible API
A production-ready OpenAI-compatible API proxy for [Tencent Hy3](https://huggingface.co/spaces/tencent/Hy3) — the 295B MoE model — via HuggingFace's Gradio API. **No API key required** to call Hy3 upstream. Drop-in replacement for `https://api.openai.com/v1`.
[](https://render.com/deploy?repo=https://github.com/sabyaghosh/hy3-openai-api-final)
[](https://www.python.org/downloads/)
[](https://fastapi.tiangolo.com/)
[](LICENSE)
---
## ✨ Features
- **OpenAI-compatible** — point any OpenAI SDK / LangChain / LlamaIndex client at `/v1`
- **Streaming + non-streaming** — full SSE support with `text/event-stream`
- **Streaming usage** — `stream_options.include_usage` emits a final usage chunk before `[DONE]` (required by Vercel AI SDK `@ai-sdk/openai-compatible`)
- **Thinking mode** — exposes model reasoning via both `reasoning_content` (o1-style) and `reasoning` (AI SDK-style)
- **Tool calling** — full OpenAI function-calling format with incremental streaming deltas
- **OpenAI spec coverage** — `stop` sequences, `response_format` (json_object / json_schema), `tool_choice` (none / auto / required / forced), `parallel_tool_calls`, `system_fingerprint`, `logprobs`
- **Multi-turn conversations** — pass full message history
- **Concurrency control** — semaphore with queue + 503 + `Retry-After` (prevents upstream overload)
- **Observability** — structured logging, in-memory ring buffer, admin endpoints, `/stats` dashboard
- **Production hardening** — optional API keys, admin token auth, input size limits, CORS spec compliance, graceful error handling
- **CLI client** (`hy3.sh`) — quick one-shot prompts from the terminal
- **