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.
Click to show internal directories.
Click to hide internal directories.