detect_strategy¶
basemode.detect.detect_strategy
Select the continuation strategy for a model, and return an instance of it.
Resolution order¶
override, if set (orValueErrorif it isn't a known strategy).- A strategy pinned for this model by
basemode bench --save. - The
prompt_methodverified for this model in the registry. - Model-name heuristics: Claude models use
prefill, except no-prefill models which usesystem; known completion models usecompletion; FIM model families usefim; the fallback issystem.
Use select_strategy instead when you need to know which of those applied — it returns the name alongside its source. See Strategies for the full picture and Model Normalization for provider-prefix and alias handling.