Show HN: LLM-mock – Record real LLM API responses once, replay them in tests
Category: library
Tags: llm, testing, python
Score: 5.0/10 (Innovation: 4, Technical: 5, Documentation: 2, Utility: 6)
LLM-mock is a Python library that records real LLM API responses and replays them during testing, enabling deterministic and cost-effective testing of LLM-dependent applications. The concept is a practical incremental improvement over manual mocking, but the project's documentation is severely lacking due to JavaScript-dependent README content being inaccessible. It targets developers needing reliable testing workflows for LLM integrations.
Target audience: backend devs
Repository: https://pypi.org/project/llm-mock
View on Hacker News