fabro/lib/foundation/fabro-model/src
Bryan Helmkamp 32d6be7ea5
refactor(model): simplify model test plumbing
Review cleanups for the tools/reasoning-effort model test change:

- Extract a shared parse_query_enum helper in the models handler in
  place of two copy-pasted parse-or-400 match blocks.
- Collapse the duplicated basic-probe pipeline in fabro-llm behind a
  single basic_probe core; name the shared EXPANDED_MAX_TOKENS budget.
- Pass &ModelTestArgs to test_models_via_server instead of threading
  five of its fields positionally.
- Dedupe the two forwarding CLI integration tests behind a helper.
- Derive clap::ValueEnum for ReasoningEffort behind a feature-gated
  clap dep (same pattern as MergeStrategy in fabro-types) so --help,
  cli.mdx, and error output list effort values from the enum instead
  of a hand-written list that drifts.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01TDdjG18d2AHh7mFWXFkBLn
2026-08-25 14:49:34 -04:00
..
catalog/providers Update Venice model catalog 2026-08-21 10:37:04 -04:00
adapter.rs feat(agent): add Claude 5 profile 2026-07-25 13:15:57 -04:00
billing.rs refactor(model): rename Kimi provider to Moonshot 2026-07-31 09:00:52 -04:00
bootstrap_catalog.rs refactor: organize crates into three layers 2026-07-23 17:59:34 -04:00
catalog.rs Remove stale env-interpolation promises from docs 2026-08-17 17:36:53 -04:00
codec.rs refactor: organize crates into three layers 2026-07-23 17:59:34 -04:00
ids.rs refactor(model): rename Kimi provider to Moonshot 2026-07-31 09:00:52 -04:00
lib.rs Expose model reasoning effort controls 2026-07-24 07:44:40 -04:00
model_ref.rs refactor: organize crates into three layers 2026-07-23 17:59:34 -04:00
model_test.rs refactor: organize crates into three layers 2026-07-23 17:59:34 -04:00
provider.rs refactor: organize crates into three layers 2026-07-23 17:59:34 -04:00
reasoning.rs refactor(model): simplify model test plumbing 2026-08-25 14:49:34 -04:00
types.rs Restore serde defaults on Model.controls for older-server compatibility 2026-07-24 09:23:18 -04:00