Skip to main content

parse_model_spec

Function parse_model_spec 

Source
pub fn parse_model_spec(spec: &str) -> ModelSpec
Expand description

Parse a model spec string into agent + model.

Formats:

  • agent:model → explicit (e.g., minimax:sonnet, opencode:minimax-m2.5-free)
  • model → infer agent from model name