Skip to content

fix: use model sampling defaults for compatible requests - #15

Merged
cppbear merged 1 commit into
mainfrom
fix/model-sampling-defaults
Oct 8, 2026
Merged

cppbear merged 1 commit into
mainfrom
fix/model-sampling-defaults

Conversation

@cppbear

@cppbear cppbear commented Oct 8, 2026 •

Copy link
Copy Markdown
Owner

Some compatible services reject the hard-coded top_p parameter with HTTP 400. The shared generation/repair request path now omits top_p and temperature, using the selected model's default sampling settings. The single non-streaming answer and 10,000-token limit are retained.

Validation: cargo build -p utgen --locked and cargo test -p utgen --locked passed (46 tests, one opt-in live test ignored). Local HTTP regressions verify that both sampling fields are omitted rather than null in generation and repair requests; proxy-isolation tests passed. Documentation describes the model-default sampling behavior.

@cppbear
cppbear marked this pull request as ready for review October 8, 2026 09:03
@cppbear
cppbear merged commit 2458694 into main Oct 8, 2026
2 checks passed
@cppbear
cppbear deleted the fix/model-sampling-defaults branch October 11, 2026 14:49
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.

1 participant