Spaces:
Running
Running
| 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). | |