Spaces:
Running
Running
File size: 804 Bytes
e63a57d bc742a1 e63a57d bc742a1 e63a57d bc742a1 e63a57d bc742a1 aa0e8f8 bc742a1 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 | ---
title: MicroGPT OpenAI API
emoji: 🚀
colorFrom: blue
colorTo: indigo
sdk: docker
app_port: 7860
pinned: false
license: mit
---
# MicroGPT OpenAI-Compatible API
This Space hosts a Go-based inference server for the **MicroGPT** model, providing an OpenAI-compatible API.
## API Endpoints
- **`POST /v1/chat/completions`**: standard OpenAI chat format.
- **`GET /v1/models`**: returns model metadata.
- **`GET /`**: health check and status page.
## Local Test
```bash
curl -X POST http://localhost:7860/v1/chat/completions \
-H "Content-Type: application/json" \
-d '{
"model": "microgpt",
"messages": [
{"role": "user", "content": "Help me prioritize my day"}
]
}'
```
## Repository
Built with [MicroGPT Go Edition](https://github.com/Traves-Theberge/microgpt-tui-go).
|