Back to browse
GitHub Repository

Record real LLM API responses once, replay them in tests forever — no API key, no cost, no non-determinism.

1 starsPython

LLM-mock – Record and replay OpenAI/Anthropic calls in pytest (v1.0)

by roman_t·Jul 13, 2026·3 points·1 comment

AI Analysis

●●SolidSolve My ProblemCozy

HTTP-layer interception for deterministic LLM tests without touching production code.

Strengths
  • Intercepts HTTP transport layer requiring zero changes to existing application code.
  • Stores fixtures as plain JSON files enabling diffs in pull requests.
  • Eliminates API costs and non-determinism in CI pipelines instantly.
Weaknesses
  • Only supports OpenAI and Anthropic SDKs, missing broader model provider coverage.
  • Recording fixtures requires manual setup steps before test execution.
Target Audience

Python developers testing LLM-integrated applications

Similar To

betamax · vcrpy · pytest-recording

Similar Projects

AI/ML●●Solid

Translate LLM API Calls Across OpenAI, Anthropic, and Gemini

Hub-and-spoke IR translates LLM APIs without N^2 adapter hell.

Big BrainNiche Gem
Oaklight
202mo ago