Skip to content

Conversation

comhar
Copy link
Contributor

@comhar comhar commented Oct 9, 2025

fixes #26

random_tool_id isn't deterministic. This has two downstream effects:

  • we get noisy diffs every time we run our notebooks.
  • our prompts are also noisy which means we miss the cachy cache.

This pr adds an optional random seed to patch_litellm which ensures that our tool call ids are deterministic. Our notebooks (core and index) can now run e2e with no diff produced with 0 cache misses.

In a follow-up pr, I'll reset cachy.jsonl so that it no longer contains stale requests.

@comhar comhar self-assigned this Oct 9, 2025
@comhar comhar added the enhancement New feature or request label Oct 9, 2025
@comhar comhar requested a review from jph00 October 9, 2025 11:05
@comhar comhar mentioned this pull request Oct 9, 2025
@jph00
Copy link
Contributor

jph00 commented Oct 11, 2025

Good find!

@jph00 jph00 merged commit a1a166e into main Oct 11, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

make notebooks deterministic

2 participants