Skip to content

server: read min_p as float (fixes #887) - #906

Merged
tawei-amd merged 1 commit into
mainfrom
fix/887-min-p-float
Nov 1, 2026
Merged

tawei-amd merged 1 commit into
mainfrom
fix/887-min-p-float

Conversation

@tawei-amd

Copy link
Copy Markdown
Collaborator

configure_chat_engine_parameters read min_p into an int, so a request value such as 0.05 was truncated to 0 before reaching set_minp(float). Changed to float, matching temperature/top_p.

One-line change; not built or run-tested locally, found by source inspection (thanks to the reporter).

Fixes #887

🤖 Generated with Claude Code

Fixes #887

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
@tawei-amd
tawei-amd requested a review from zaneni6 October 31, 2026 23:17
@tawei-amd
tawei-amd marked this pull request as ready for review November 1, 2026 12:47
@tawei-amd
tawei-amd merged commit 65a5f64 into main Nov 1, 2026
38 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Server: min_p is read as int, so fractional values (e.g. 0.05) become 0

2 participants