Back to Icho Home Icho v0.8.0

Ignore Fields

Some LLM request parameters (such as temperature, max_tokens, or variable user seeds) change dynamically without impacting the core integration output. Use ignore_fields to strip parameters prior to hashing:

with cassette("tests/cassettes", ignore_fields=["temperature", "max_tokens"]):
    # These two requests will yield the exact same hash and fetch the same cached response:
    model.invoke("hello", temperature=0.2)
    model.invoke("hello", temperature=0.8)