Repository navigation
π dashboard: make the agent Model picker readable for gateway backends - #12165
Conversation
The "(from launch command)" option is now "(backend default β <resolved default model>)", options show full gateway model ids, a current model outside the gateway's entitled set is flagged "(current β not allowed by gateway)", and the select tooltip states the precedence. The models API reports default_model and entitled_models. Saved values were always full ids; only labels changed. Refs #9945 Signed-off-by: Andrew Anderson <andy@clubanderson.com>
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: The full list of commands accepted by this bot can be found here. DetailsNeeds approval from an approver in each of these files:Approvers can indicate their approval by writing |
Open PR overlap checkBase branch: Conflicts are checked with every PR merged onto the current tip of
|
|
merged by Hive trusted-author auto-merge: author @clubanderson holds role owner and GitHub permission admin on repo; CI green at 675f1c4. |
|
Thank you for your contribution! Your PR has been merged. We'd love to hear how your experience was: share feedback |
Refs #9945 β cc @MikeSpreitzer
Follow-up to #12160. Mike couldn't tell how to "unset" an agent's model in Configuration β General: the inherit option was labelled "(from launch command)", gateway ids were shown with the provider prefix stripped (
glm-5-3forrits/zai-org/glm-5-3) while the stale current model kept its prefix (aws/claude-sonnet-4-6), and nothing said that current model was the reason every call 403'd.Not a second bug: option values were already the full gateway ids (
value: m, labelm.split('/').pop()), so choosing "glm-5-3" savedrits/zai-org/glm-5-3. Only the labels were misleading. A test now pins that.Changes
(backend default β rits/zai-org/glm-5-3)when the gatewaydefault_modelis known;(backend default β the gateway's default_model, Settings β Model Gateways)when not;(backend default β chosen by the claude CLI)for CLI backends.(current β not allowed by gateway).default_modelβ CLI default. π Fall back to the gateway default_model when the per-agent model is not entitledΒ #12160 semantics (proxy fallback to the gateway default) unchanged./api/inference/models/{backend}now also returnsdefault_modeland the fullentitled_modelsset.docs/inference-backends.md; changelog fragment.Tests:
agent_model_picker_9945_test.goβ static wiring, node-rendered labels for stale/none/explicit/unknown-entitlement/CLI cases (values stay full ids), and the API reportingdefault_model/entitled_models.cli_pin_model_options_test.goharness updated.Validation:
gofmt -l pkg/dashboardclean,go vet ./pkg/dashboard/,go build ./...,go test ./pkg/dashboard/...all pass.