Repository navigation
fix(model): replace inherited output limits on request overrides - #4155
Closed
ningmao-hlyz wants to merge 1 commit into
Closed
ningmao-hlyz wants to merge 1 commit into
ningmao-hlyz wants to merge 1 commit into
Conversation
Preview approval requiredThis pull request comes from a fork, so Mintlify won't build a preview until someone with write access approves commit |
3 of 5 tasks
ningmao-hlyz
force-pushed
the
fix/model-output-option-overrides
branch
from
November 13, 2026 18:25
2b9c309 to
8a628e0
Compare
ningmao-hlyz
marked this pull request as ready for review
November 13, 2026 18:25
This was referenced Nov 13, 2026
ningmao-hlyz
force-pushed
the
fix/model-output-option-overrides
branch
from
November 13, 2026 19:21
8a628e0 to
9e6a23e
Compare
ningmao-hlyz
force-pushed
the
fix/model-output-option-overrides
branch
from
November 13, 2026 19:35
9e6a23e to
930f6a5
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
AgentScope-Java Version
2.1.0-SNAPSHOT, based on main at
a4306d63(#4154).Description
Fixes #4164.
When a request overrides
maxTokens,GenerateOptions.mergeOptions()can retainmaxCompletionTokensfrom the model defaults, and vice versa. Treat the two fields as one override group. Preserve defaults when the request supplies neither field, and preserve both values when the request explicitly supplies both.The regression tests cover both override directions. Provider-specific validation is unchanged. This is one commit, independent of the memory changes.
Validation on Windows with Java 17:
mvn -B -o -T1C -pl agentscope-core -am -Dmaven.javadoc.skip=true -Dmaven.source.skip=true -Djacoco.skip=true spotless:check test3,454 tests, no failures or errors, 9 skipped. English and Chinese release notes describe the merge behavior change.
Checklist
mvn spotless:apply; Spotless checks pass.