🤖 feat: add custom model parameter override fields to custom model editing#3453
🤖 feat: add custom model parameter override fields to custom model editing#3453Neppkun wants to merge 4 commits into
Conversation
|
@codex review |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 1870af287e
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
|
Addressed Codex findings in a follow-up commit (
Validation run:
|
|
@codex review Addressed all prior findings and resolved those threads; please re-review. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: a1c80adfc1
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
|
Addressed new Codex finding discussion_r3358046353 in commit
Validation:
|
|
@codex review Addressed the latest finding about preserving hidden parameter overrides on model rename and resolved that thread. Please re-review. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 8c715feb0c
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| const setOverridesResult = await api.providers.setModelParameters({ | ||
| provider: providerId, | ||
| modelId: trimmedModelId, | ||
| overrides, | ||
| }); |
There was a problem hiding this comment.
Preserve extra overrides when persisting renames
When a custom model with hand-edited modelParameters such as top_k or seed is renamed in Settings, the optimistic state migrates those extra keys, but the persisted API sequence does not: this call only sends the three editable fields for the new ID, and the later legacy clear removes the old unconfigured entry entirely. After refresh/restart, the non-editable overrides are lost despite being preserved in the temporary UI state; persist the migrated entry or add a backend rename path before clearing the legacy key.
Useful? React with 👍 / 👎.
|
Addressed the rename persistence bug in commit 29845a7. Fix summary
Validation:
@codex review |
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
|
oh ok |
Summary
Adds
max_output_tokens,temperature, andtop_pediting to the Custom Models edit flow in Settings, so users can configure per-model provider overrides in-app instead of editing~/.mux/providers.jsoncmanually.Background
providers.jsoncalready supports per-model parameter overrides and runtime consumption, but the Settings UI had no controls for these fields. This expands on #2743 by exposing those existing capabilities in the custom model editing UX.Implementation
modelParametersto provider config payloads returned to the UI.providers.setModelParametersfor setting/clearing per-model overrides.ProviderServiceto:modelParametersingetConfigprovider.modelParameters[modelId]ModelsSection+ModelRow) to:max_output_tokens,temperature,top_p>0int,0..2,0..1)Demo
https://owo.whats-th.is/4nedYg5.mp4
Validation
make typecheckbun test src/node/services/providerService.test.ts src/browser/features/Settings/Sections/ModelsSection.test.tsmake static-checkin this environment, but it is blocked by missing local tools:shfmt,shellcheck, andhadolint.Risks
Generated with
mux• Model:openai:gpt-5.3-codex• Thinking:high• Cost:$4.54