feat(ollama): logprobs support in Ollama
by keenborder786
·
Feb 06, 2026 at 19:30 UTC
·
scan-c9a41063c711c5bc
Get this automatically on every PR
Install the Axiomo GitHub App to get Signals as check runs and PR comments on every pull request.
Risk level: Low (20%)
Enable log probabilities in Ollama chat models.
chat_models.py adds logprobs and top_logprobs parameters.
test_chat_models.py includes changes reflecting logprobs option.
Established contributor with 89 merged PRs. maintains 101 public repositories. unfamiliar with 2 files.
Trusted contributor with 633 merged PRs. has 250 followers.
Review 2 file(s)
libs/partners/ollama/tests/unit_tests/test_chat_models.py
+60
60 lines changed; Source code
libs/partners/ollama/langchain_ollama/chat_models.py
+10
Source code
16
minutes to review
medium
effort level
none
staleness risk
Standard review process
Good evidence, acceptable risk, ready for merge
Why is security_scan_clean missing? Consider adding this check.
Why is coverage_maintained missing? Consider adding this check.