Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
31 changes: 31 additions & 0 deletions .changeset/pearl-th-2b5f63-cast-models.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
---
'@smooai/smooth': patch
---

Pearl th-2b5f63: add `th cast models` — list live model groups
exposed by the configured LiteLLM provider (e.g. llm.smoo.ai) via
`GET /v1/models`.

Useful for confirming deploys, debugging routing, and copying
alias names. The default provider is the one backing the `default`
routing slot (what `th routing show` highlights); pass
`--provider NAME` to override on multi-provider setups.

Flags:

- `--provider NAME` — override the provider id (default: the
provider backing the `default` routing slot).
- `--filter PATTERN` — case-insensitive substring filter on
model ids.
- `--json` — emit `{"data":[{"id":"..."}]}` for scripting.

The parser is tolerant of LiteLLM responses with embedded ASCII
control bytes (we strip 0x00-0x1F before strict JSON parsing) and
of truncated responses (a byte-scan fallback recovers any
complete `"id":"NAME"` entries). When the strict and lossy
counts disagree, the footer surfaces a `!` warning so deploys
returning partial bodies don't fail silently.

Exits 2 if no provider is configured (`run th auth login`), and
prints the status code + first 200 chars of the body when the
provider responds non-200.
1 change: 1 addition & 0 deletions crates/smooth-bench/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -354,6 +354,7 @@ async fn run_score_tui(args: ScoreTuiArgs) -> Result<()> {
debug_pane_log: args.debug,
stuck_means_failed: !args.allow_stuck_passes,
require_edits_for_pass: !args.allow_no_edit_passes,
under_test_model: None,
};

let cfg = TuiSweepConfig {
Expand Down
Loading
Loading