-
Notifications
You must be signed in to change notification settings - Fork 3
Model Selection and Providers
CodingScaffold separates model recommendation from request routing.
Model recommendation is available before any LLM is configured. CodingScaffold reads local project metadata, hardware facts, credential presence, and the prompt text. It then recommends a route. It does not proxy the prompt or call a provider.
Actual request routing happens later in the coding tool or an optional backend such as RouteLLM.
Use tools select-model when you want an explainable routing suggestion:
coding-scaffold tools select-model --target ~/dev/my-project \
--prompt "Review this authentication refactor for security regressions."The command does not call a model. It classifies the task and reports:
- prompt profile
- route:
routineorheavy-lift - provider
- model family
- model or deployment
- confidence
- reasons
Use auto mode when a developer does not want to choose each time:
coding-scaffold tools select-model --target ~/dev/my-project --mode auto \
--prompt "Fix this failing formatter test."Auto mode still prints the decision so the user can challenge it.
Provider detection checks:
- local runtimes such as Ollama, LM Studio, and llama-server
- local credential files in
.coding-scaffold/.env.local - project-local JSON credentials
- common cloud provider environment variables
- optional GitHub Copilot CLI status during explicit
probeanddoctorcommands
Secrets are never printed.
For Azure OpenAI, use:
AZURE_OPENAI_API_KEY=
AZURE_OPENAI_ENDPOINT=
AZURE_OPENAI_DEPLOYMENT=
For Azure AI or Cognitive Services style endpoints, use:
AZURE_AI_API_KEY=
AZURE_AI_ENDPOINT=
AZURE_AI_MODEL=
AZURE_AI_MODEL_FAMILY=openai
If the endpoint serves Anthropic-family models, set:
AZURE_AI_MODEL_FAMILY=anthropic