MicroGPT-API / README.md
Traves's picture
Add root handler to fix 404
aa0e8f8 verified
---
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).