mockup

command
v0.1.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 6, 2026 License: MIT Imports: 9 Imported by: 0

Documentation

Overview

Command mockup is a minimal LLM-gateway-shaped HTTP server used in the api-log development stack and integration tests.

It speaks three protocol shapes recognized by api-log:

POST /v1/chat/completions   (OpenAI Chat Completions)
POST /v1/responses          (OpenAI Responses)
POST /v1/messages           (Anthropic Messages)

For each, when the request body has "stream": true it emits an SSE response shaped like the real provider's wire format; otherwise it emits a single JSON response with a `usage` block. The body content is deterministic and small — these are fixtures for capturing, session-inferring, and replaying, not for benchmarking LLM quality.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL