Skip to main content

Module auto_model

Module auto_model 

Source
Expand description

Legacy DeepSeek-scoped prompt complexity classifier.

This pure scorer is retained for API compatibility, but the consolidated CLI dispatcher must not use it to resolve provider-neutral model = "auto": doing so fabricates DeepSeek model ids for every active provider. The TUI’s provider-aware router owns runtime auto selection. Callers may use this helper only when their candidate pair is explicitly the DeepSeek pair:

  • deepseek-v4-pro — complex tasks (debugging, refactoring, design, security review, multi-file changes, code generation, …).
  • deepseek-v4-flash — simple tasks (lookups, formatting, small edits, translation, Q&A, …).

This is a pure rule-based classifier. It lives in the config crate because the resolved model name is a config-level concern; the route resolver never sees the "auto" sentinel or the prompt text.

Constants§

FLASH_MODEL
The resolved model name for the flash tier.
PRO_MODEL
The resolved model name for the pro tier.

Functions§

classify
Classify a prompt for the legacy DeepSeek candidate pair.
score
Compute the raw complexity score for a prompt.