mock-llm

dwmkerr
1
Simple OpenAI compatible Mock API server. Useful for deterministic testing of AI applications, LLMs, MCP and A2A.

Overview

What is mock-llm

mock-llm is a simple OpenAI compatible Mock API server designed for deterministic testing of AI applications, LLMs, MCP, and A2A. It functions as an 'echo' server that responds to user messages, allowing developers to simulate various scenarios.

How to Use

To use mock-llm, set up the server and configure it to provide specific responses based on user input. This includes customizing responses, loading configuration files, and performing health checks. Developers can also deploy it to Kubernetes using Helm.

Key Features

Key features of mock-llm include customizable responses, support for sequential responses, health and readiness checks, and the ability to mock different APIs such as OpenAI Completions API, MCP, and A2A protocols.

Where to Use

mock-llm can be used in various fields including AI application development, testing environments, and any scenario requiring deterministic responses from language models.

Use Cases

Use cases for mock-llm include creating integration tests for AI applications, simulating error scenarios, testing different payloads, and facilitating development workflows that require predictable API responses.

Content