MCPcopy Create free account
hub / github.com/Dizzy-K/AutoPT / _resolve_model_spec

Function _resolve_model_spec

cli/main.py:229–235  ·  view source on GitHub ↗
(model_identifier: str | None, config: AppConfig)

Source from the content-addressed store, hash-verified

227
228
229def _resolve_model_spec(model_identifier: str | None, config: AppConfig) -> ModelSpec:
230 candidate = (model_identifier or config.llm.default_model or "").strip()
231 if not candidate:
232 raise ValueError(
233 "No model configured. Pass --model explicitly or set llm.default_model in configs/config.yml."
234 )
235 return resolve_model(candidate, default_provider=config.llm.default_provider)
236
237
238def _format_benchmark_row(name: str, *, target: str = "", category: str = "", difficulty: str = "") -> str:

Callers 3

handle_doctorFunction · 0.85
handle_inspectFunction · 0.85
handle_runFunction · 0.85

Calls 1

resolve_modelFunction · 0.90

Tested by

no test coverage detected