Skip to content
This repository was archived by the owner on Oct 21, 2025. It is now read-only.

Conversation

@jakozaur
Copy link
Contributor

Fix bug with re-use session of ollama, which leaked context between sessions. This made some results unpredictable.

Add option --seed, it works perfectly with local ollama.

@jakozaur jakozaur requested a review from stared August 18, 2025 14:40
@jakozaur jakozaur force-pushed the deterministic-output branch from 3f88659 to 2e2eb08 Compare August 18, 2025 14:51
"""Generate response from OpenRouter model."""
# For reproducibility, use temperature=0 when seed is set
if self.seed is not None:
temperature = 0.0
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As above.

Comment on lines 270 to 271
if self.seed is not None:
temperature = 0.0
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

again

Copy link
Contributor

@stared stared left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

See comments on temperature - otherwise, LGTM.

@jakozaur jakozaur merged commit e88ccca into main Aug 19, 2025
2 checks passed
@jakozaur jakozaur deleted the deterministic-output branch August 19, 2025 08:53
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants