Repository navigation
feat(api-monitor): add Load button to API page toolbar - #10378
Conversation
97788e0 to
a8d50b2
Compare
danielhanchen
left a comment
There was a problem hiding this comment.
Thank you so much for the PR @michupeel, and for the clear write-up and screenshot!
We won't be taking the code changes here, since #11223 landed on main in the meantime and adds the same capability to the API page toolbar: a shared ModelSelector picker that loads through useChatModelRuntime().selectModel() (same config precedence, loading guards, and rollback as Chat), plus a Reload shortcut for the previous model. Merging this on top would give the toolbar two load controls.
We still really appreciate the contribution, so I reduced this PR to a single empty commit authored by you and am merging that, which keeps you credited as an Unsloth contributor. Thanks again, and we would love to see more PRs from you!
Summary
Adds a
Loadaction to the API monitor toolbar.The new action:
ModelSelectorMotivation
The API page already exposes
Unload, but loading a model currently requires navigating to another part of Studio.This makes model lifecycle management asymmetric for API-focused workflows.
Implementation
Loadto the left ofPauseModelSelectoruseChatModelRuntime().selectModel()pathdisabledandhideChevronsupport toModelSelectorTesting
npm run typecheck— passednpm run build— passedgit diff --check— passedScope
Screenshot