WeSearch

LLM-mock – Record real LLM API responses once, replay them in tests forever

·6 min read · 0 reactions · 0 comments · 16 views
#software#testing#development#llm-mock#pytest#Anthropic
LLM-mock – Record real LLM API responses once, replay them in tests forever
⚡ TL;DR · AI summary

The article introduces llm-mock, a tool designed to record and replay LLM API calls for testing purposes. It allows developers to run tests without incurring costs or requiring API keys after the initial recording. The tool integrates seamlessly with pytest, enabling deterministic testing of LLM responses.

Key facts
Original article
Pypi
Read full at Pypi →
Opening excerpt (first ~120 words) tap to expand

llm-mock 0.1.1 pip install llm-mock Copy PIP instructions Latest version Released: May 21, 2026 Record and replay LLM API calls for deterministic testing Navigation Project description Release history Download files Verified details These details have been verified by PyPI Maintainers troman Unverified details These details have not been verified by PyPI Meta Requires: Python >=3.10 Provides-Extra: dev Report project as malware Project description Project details Release history Download files Project description llm-mock Record real LLM responses once, replay them in tests forever — no API key required, no cost, no non-determinism.

Excerpt limited to ~120 words for fair-use compliance. The full article is at Pypi.

Anonymous · no account needed
Share 𝕏 Facebook Reddit LinkedIn Threads WhatsApp Bluesky Mastodon Email

Discussion

0 comments

More from Pypi