Repository navigation
Add explicit BaseLM forward contract - #5
Open
MaximeRivest wants to merge 3 commits into
Open
MaximeRivest wants to merge 3 commits into
MaximeRivest wants to merge 3 commits into
Conversation
MaximeRivest
force-pushed
the
baselm-forward-contract-pr2
branch
2 times, most recently
from
May 27, 2026 14:35
7bc864c to
83d98ff
Compare
MaximeRivest
force-pushed
the
baselm-forward-contract-pr2
branch
from
May 27, 2026 14:40
83d98ff to
ec05c80
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.
Adds an explicit
forward_contractmarker toBaseLMas the migration hook for the typed LM API.\n\nThis PR keeps the default contract as"legacy"and introduces"typed_lm"as the opt-in contract for future LMs that implementforward(request: LMRequest) -> LMResponse.\n\nIt also adds small validation helpers for typed LM responses and warnings for legacy-declared LMs that already returnLMResponse. No public LM call behavior changes in this PR.