Skip to content

Conversation

Copy link

Copilot AI commented Jan 12, 2026

Documents the OpenAI, Anthropic, and Ollama APIs via Swagger and serves it as the model-runner homepage.

Changes

  • New pkg/swagger package

    • OpenAPI 3.0.3 spec covering all three API compatibility layers
    • Embedded spec served at /openapi.yaml
    • Swagger UI served at / using CDN-hosted assets
  • API Documentation Coverage

    • OpenAI: /v1/chat/completions, /v1/completions, /v1/embeddings, /v1/models, /responses
    • Anthropic: /anthropic/v1/messages, /anthropic/v1/messages/count_tokens
    • Ollama: /api/chat, /api/generate, /api/tags, /api/show, /api/pull, /api/delete, /api/ps
    • System: /engines/status, /engines/ps, /engines/df, /engines/unload, /metrics

Screenshot

Swagger UI Homepage

Original prompt

Document the openai api, anthropic api and ollama api's via swagger. Make it the homepage of model-runner.


✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.

- Create OpenAPI 3.0.3 specification documenting OpenAI, Anthropic, and Ollama APIs
- Create swagger package with embedded OpenAPI spec and Swagger UI handler
- Update main.go to serve Swagger UI at the homepage (/)
- Add comprehensive API documentation for all endpoints
- Add unit tests for swagger handler

Co-authored-by: ericcurtin <1694275+ericcurtin@users.noreply.github.com>
Copilot AI changed the title [WIP] Document OpenAI, Anthropic, and Ollama APIs via Swagger Add Swagger UI API documentation as homepage Jan 12, 2026
Copilot AI requested a review from ericcurtin January 12, 2026 17:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants